This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
Have you checked out Aspose?
subject: Problem in Struts radio button
It's not a secret anymore!