aspose file tools*
The moose likes Struts and the fly likes how to keep the values of radio buttons intact? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to keep the values of radio buttons intact?" Watch "how to keep the values of radio buttons intact?" New topic
Author

how to keep the values of radio buttons intact?

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
HI,
i have a html form with radio buttons. WHen I click submit, i use the req paramter to create arraylist and process the values. (using struts like action env)
my problem is that when i click save/submit button the values i had clicked on the radio buttons get lost. what should i do to keep them as it is?
I heard about sessions, hidden but they are used to pass values to further pages. I am just looking to keep the radio btn values what i chose before submitting submit.
help!
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
If you're using Struts, you can define your ActionForm to be bound to the session instead of the request (default), so when it's loaded later the values will still be there and correctly rendered by Struts when it dishes out the page again for the client.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Moving to the Frameworks forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to keep the values of radio buttons intact?