Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retain selected content in a JSP

 
yudi raj
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 jsp files: login.jsp and process.jsp....In login.jsp, I placed combo boxes and radio buttons. On selecting the values from the combo box and radio button and further submitting, the jsp displays process.jsp where it should retain the selected content. Here are both of my jsp files:

login.jsp
-----------


process.jsp
-------------


The radio button is not selected in the next page. However, I could retrieve the name through request.getParameter method. I think is something wrong in my javascript. Please let me know where I am going wrong. Thank you.
 
himanshu.harish agrawal
Ranch Hand
Posts: 47
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude,

Here you go



uday singh rajpurohit wrote:The radio button is not selected in the next page.

If you had noticed then your drop was not working as well.
Also, you are not getting Gender text displayed, I will leave this to you to figure the problem!

Regards,
Himanshu
 
yudi raj
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Himanshu
 
chetan sisodiya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uday singh rajpurohit wrote:Thanks Himanshu


Himanshu, the link you gave is I m familior with already. My problem is that I am not senting parameter to a diff page. I m posting dropdown's parameter on the same page. and on eveny ONCHANGE event on the first dropdown list proper result are reflectiung back on second parameter but the value of second drop down is set set back to default selected calue.. Is should be what I selected before.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic