Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transfer the variable value from one jsp page to other

 
Revanth Sharma
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34372
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic