File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29244
    
139

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
 
jQuery in Action, 2nd edition
 
subject: Transfer the variable value from one jsp page to other
 
Similar Threads
jsp insert program not working
How to getParameter value
Error comes whilke compiling the jsp page
How can i get selected radio button value using jsp
Displaying contents of arraylist in jsp