Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pop-Up Window and getParameter()

 
Daniel Gee
Ranch Hand
Posts: 202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic