문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top