aspose file tools*
The moose likes Servlets and the fly likes Pop-Up Window and getParameter() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Pop-Up Window and getParameter()" Watch "Pop-Up Window and getParameter()" New topic
Author

Pop-Up Window and getParameter()

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
I have used the getParameter() to retrieve data from web page text fields. No problem so far.

Now, I have a web page that has a number of text fields. In addition, the JavaScript is used in this web page to pop-up another window for users to enter more data in some text fields and a textarea. When uses click on the OK button provided in this pop-up window, it disappears from the screen.

Can the data entered in this pop-up window be read by the getParameter() method in a servlet?
[ March 14, 2005: Message edited by: Daniel Gee ]
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489


In addition, the JavaScript is used in this web page to pop-up another window for users to enter more data in some text fields and a textarea.
Can the data entered in this pop-up window be read by the getParameter() method in a servlet?


Yes, provided there is a submit action in the popup window.

Else, you should consider populating the data in the main form by the data entered in the popup text fields using javascript and have one submit button in the main window that submits all the data to the server.

Ram.
 
Consider Paul's rocket mass heater.
 
subject: Pop-Up Window and getParameter()