This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
in our application we need to send an email to other user, for this I have created a popup window with one text field (for to address) and send button, when the current user click on the send then the popup window will be closed and in from the main window we need to take that email address and will do the action (that means will send an email).
here I can able to get emaill address from popup window and append that email address to action. see the following action code
When I run the application i get the alert message final link = "/myapp/emailFriend.do?toAddressemail@example.com.
in the Action class, I tried to get the String to_Address = request.getParameter("toAddress"); from the request, but its getting null. why ?
and I veryfy the url bar for this parameter, here I found missing
please someone help me to get the email address to the action.
Try creating a hidden textbox named "toAddress" and set the email address in this. Refrain from rewriting the URL in your JS and simply submit the form. Hopefully this should solve your problem, or you can always write back.