In a way, Nadia, your problem is not a problem. If you want to "make sure one of the radio buttons [you] have on the page is clicked", then all you really want is to make sure the value of that button is available in the processing of the request. You can do that without the radio button even being on, or even existing. Right?
Jack On Tue, 11 Jan 2005 11:58:37 -0500, Nadia Kunkov <[EMAIL PROTECTED]> wrote: > Hi, > I implemented DispatchAction and I have a page with three submit buttons, > each executes a method in my dispatch action. > <html:submit property="method" value="doSomething"> > This works fine but I would like to make sure that one of the radio buttons > that I have on the page is clicked. > My validation is turned off for this action since there are no input fields > to validate. > I created a javascript function that will check if a radio button is clicked. > So now I have > <html:submit property="method" value="doSomething" onclick="validate();"> > I don't know if I can do this with dispatch action. It looks like I can't > since I never go into the validate() function, but go right to the action > when I click the button. > > Another way of doing it would be to create another form for this action with > just one field and turn on the validation where I would check the value of a > radio button. > > What is a better way of doing it? What is a best practice? > > Thanks for your help. > NK > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ------------------------------ "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ ----------------------------------------------- "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]