Meaningless Drivel is fun!*
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: 30123
    
150

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transfer the variable value from one jsp page to other
 
Similar Threads
jsp insert program not working
Error comes whilke compiling the jsp page
Displaying contents of arraylist in jsp
How to getParameter value
How can i get selected radio button value using jsp