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

map backed form related issue

Bhavin Sanghani
Ranch Hand

Joined: Dec 17, 2003
Posts: 67

In my application I am using map-backed form. I am using it to store responses of the user for one survey based system. For example,

1) Question1
a) Yes
b) No

2) Question2
a) Yes
b) No

In this example, Question2 will only be displayed if user selects "Yes" answer of Question1.

Now, this captures responses properly and storing it in the map available in the form. But if user changes the response from Yes to No in Question1 then I need to remove response of Question2 from map available in form. Since user had answered Question2 it is still available there.

Can anyone adivce me to fix this issue?


I agree. Here's the link:
subject: map backed form related issue
jQuery in Action, 3rd edition