• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Destroy anything that stands in your way. Except this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic