Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populating previously selected Radio Button Values - On reaching the Same JSP pae

 
Saurabh KumarD
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working in a scenario in which on a JSP page, I am including static html files using jsp: include (Since jsp file names are to be determined at run time). These static html files have some text and some radio buttons.

On the page I select a radio button and submit. I am using struts framework. I reached to a next page. Where I have a button which takes me to previous page again using struts action.

I want that now again on reaching the page, my previously selected radio value should be displayed to me. I have tried setting the selected value in the form. But it didn’t work.

Can anyone please help me in this scenario?

Thanks
Saurabh
 
Lucas Grijander
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my modest opinion, I think you can't modify static html content in that way because, as its name says, its static!!

otherwise, use the name attribute of the s:radio to prepopulate it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic