GeeCON Prague 2014*
The moose likes JSP and the fly likes Transfer the variable value from one jsp page to other Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Transfer the variable value from one jsp page to other" Watch "Transfer the variable value from one jsp page to other" New topic
Author

Transfer the variable value from one jsp page to other

Revanth Sharma
Greenhorn

Joined: Jul 30, 2011
Posts: 14
Hi,

I have been banging my head passing the variable value from one jsp page to other. I have one task, one page behaves as admin. I have a list of users in the database. in the admin.jsp, if the radio button is selected and the edit button is pressed it has to go to the edit.jsp page where we can edit the fields. I am not sure how to pass the selected radio button variable from admin.jsp to edit.jsp

This is the code i have:


In the edit.jsp I have the following code.



I really need some help how to transfer the variable from one jsp to other.

thanks in advance
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30595
    
154

You are close. You need to add a value attribute to the radio buttons. That way the receiving JSP has a value linked to the selected radio button.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
GeeCON Prague 2014
 
subject: Transfer the variable value from one jsp page to other