Hi all: I have an ActionForm class, in it, I have a method that populates the drop down from the Session, and I have a validate() to validate the form of course. And if the user enters something wrong, the jsp be page will be reloaded with the error message
Now, my problem is if the Session is timed out, then when the user click the submit button on the form, the JSP page will be reloaded, with the error message. however, any contents in the drop down will be GONE because the session timed out. So for an end user who is not very technical, he/she cannot figure out exactly what went wrong because the error message displayed on the reloade JSP page is not really descriptive of the problems with the drop down.
idealy, I would like my ActionForm class to redirect to a "timeout.jsp" so to speak when the session is timed out, but I can't exactly do this through the validate() method can I?
how should I redirect my page when the session is timed out in Struts? what is the best practice in Struts?
If anyone can lend me a hand on this, I'd be really greatful.