Hi, on my
JSP there is a select box which has some objects pre-populated before the screen is displayed to user for his input. Now what is happending when the user submits the form, it performs server side validations using the Spring Validations and in case some issue is found then redirects to same JSP with the error messages to be displayed on JSP. Now this time the pre-populated objects in my dropdown select box are gone, completely blank. Please tell me what is causing this issue and how to make them permanently available on JSP.
here are my codes:-
I'm setting into model using addAttribute() and on JSP retrieving like this:-
First load of JSP, it is coming and on refresh also it is coming but when a page is submitted or actually processed and comes back then it displays nothing.
Thanks