• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic