Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Transfer the variable value from one jsp page to other  RSS feed

 
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
 
author & internet detective
Posts: 39148
724
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.
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!