This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pop-Up Window and getParameter()
 
Similar Threads
Focus on child window after parent window gets refreshed
can I view a pop up but have parent page active?
JSP and Java Script
Reloading a parent window 1 after submit from window 2
document.write() gives script error in IE but not in firefox.