File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem in Struts radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in Struts radio button" Watch "Problem in Struts radio button" New topic

Problem in Struts radio button

aniket prakash patil

Joined: May 04, 2011
Posts: 10

I am facing a unique problem. i have a web application developed in struts 1.1.
A question is displayed on the jsp with two radio buttons "yes" and "no".
I am trying to clear the value of radio button selected in the javascript. the radio button is cleared but the value in the DynaValidater form bean is not cleared. it retains the value.

could someone please suggest me how to clear the value w/o reloading the page.
Need some help.

Gaurav Kushwaha

Joined: May 20, 2009
Posts: 19

Instead of using DynaValidatorForm directly, make a new Form Class which extends the DynaValidatorForm.
Use the new form class in the strut-config.xml. Have reset() in the form class and try to reset the value.

Just give it a try, as i haven't tried it.
I agree. Here's the link:
subject: Problem in Struts radio button
It's not a secret anymore!