Jeanne is absolutely right. However, I'm guessing the next question in your mind is "so now what do I do?".
One way to do it would be to add a hidden field to your page like this:
If you do this, the "applName" property will get submitted along with the form and will be added to your ActionForm when the validation fails. It will then show up on your JSP just like the other input fields do.
Merrill's suggestion is the easiest and it works great for small sets of data. You will find that you encounter the same issue for the lists used to populate list boxes. If you have a lot of data or if you have lists of data the solution that I use is to have the input attribute of your action mapping point to an action that can populate these values on your form.
Joined: Sep 27, 2005
Jeanne, thank you very much in clearing me the concept on what really happens on the background.
Merrill, I would really go ahead with your suggestion, per Brent's recomendation as it has less chunk of data. Thank you.
Brent, I did have the problem a while ago and did not know which way to proceed. So I put the whole arraylist in a session scope. But thank you, that is a good suggestion.
Thanks everyone once again, its working the way it was desired. Luke.