I am having a problem with generating a JSP form that keeps the data after validation has detected bad user data. I have attempted and failed. I created a bean that generates a dropdown with the correct data, but I can't seem to get the data to keep. I believe the reason is because it is instantiating another bean and not the one the jsp had generated. Below is the code for the bean and Jsp
Two tips that should help you to get assistance more easily: 1.) If you're going to post more than a line or two of code, wrap the code in UBB tags. There is button in the edit screen that will help you to generate the tags. The UBB Code tags will preserve your indenting, making it much easier for us to read it.
2.) At the bottom left of the edit screen there is a checkbox for disabling smilies. This will keep your Dropdown tags from grinning at us.
Your bean is bound to 'request' scope. That means it will last for the duration of only one request. Subsequent requests will each create their own instance of the bean.
If you're interested, I have a DynamicSelectList example app at: http://simple.souther.us/not-so-simple. It shows one way of dealing with select lists. [ June 14, 2005: Message edited by: Ben Souther ]