permaculture playing cards*
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
Author

Problem in Struts radio button

aniket prakash patil
Greenhorn

Joined: May 04, 2011
Posts: 10
Hi,

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.

thanks.
Gaurav Kushwaha
Greenhorn

Joined: May 20, 2009
Posts: 19
Aniket,

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: http://aspose.com/file-tools
 
subject: Problem in Struts radio button
 
Similar Threads
Event Tag
i need help how to link radiobutton and textarea using struts tld
struts and ajax
Onclicking the radio buttion how to clear the populateTable() data in javascript
Radio