This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes how to get value selected on jsp2 on text field of jsp1?-urgent help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get value selected on jsp2 on text field of jsp1?-urgent help!" Watch "how to get value selected on jsp2 on text field of jsp1?-urgent help!" New topic
Author

how to get value selected on jsp2 on text field of jsp1?-urgent help!

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
HI,
I have a jsp page(jsp1) with 4 text fields and 3 buttons at bottom.

3 of the text fields have images next to them.
For example: for 1 text field, when user clicks on that image next to it(in jsp1), a jsp page(jsp2) pops up with some information. User clicks on the name from the list by selecting radio button there and presses 'select' on that pop up jsp2 page. After select is pressed the name chosen is to be displayed in the text box of jsp1. Any idea how to do this?
Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
JSP 1 should have a form bean associated with the page. When the page is submitted the data in the three text fields should be part of the form bean. User the appropriate bean attributes in jsp 2 the get the required text field information.


Jeremy Wilson
Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
how to creatan pop-up window? Could youplease add more details to your reply. It's not quiet clear.
thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get value selected on jsp2 on text field of jsp1?-urgent help!
 
Similar Threads
passing the values from popup window to jsp
JSP Form data lost while back to same Action (struts 2)
how to show the request and result in same page
Validations Spanning Multiple Pages
transferring values