• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in Struts radio button

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic