aspose file tools*
The moose likes Struts and the fly likes request parameter is missing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "request parameter is missing" Watch "request parameter is missing" New topic
Author

request parameter is missing

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
hi,

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?toAddress=sumant.in@gmail.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.


Thanks,
Kumar
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
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.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
My guess is that the URL you're getting in the alert box is not the actual URL that's getting submitted. Double check your JSP code to see if this may be the case.

Here's an alternative: You could just create a hidden field named "toAddress" and then have your JavaScript code set the value of this field before the form is submitted.


Merrill
Consultant, Sima Solutions
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 260
yes perfect, i got it now

thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request parameter is missing
 
Similar Threads
Sending Batch E-Mails
Query String Problem
Delete Confirmation page
display progress bar in a pop-up window while waiting
Popup form, parent form