Dark Star1
Dark Star1

Reputation: 7393

How to prevent a form value(s) reset in struts 1?

I am trying to prevent the values of my select boxes on a jsp page being reset in struts 1. Not necessarily with new forms that are yet to submit the captured data, but forms filled from stored objects have their select fields reset to defaults which is causing undesirable effects to workflow as assumptions were being made that the values were kept. I have found nothing so far in my search and would appreciate pointers/help.

Upvotes: 1

Views: 1876

Answers (1)

Dark Star1
Dark Star1

Reputation: 7393

Found it!! Setting the action that populates the JSP to session scope in the struts-config.xml action mapping solved my problem.

Upvotes: 2

Related Questions