Hello everyone, Could anyone help me on an issue here?
Here is the problem. I have a form in JSP to submit. But the parameters in this form is not static, they are from a database. So I have an action to be called first before enter the JSP page. It goes like this in the struts.xml: <action name="prepare" class="XXX"> <result name="success">form.jsp</result> <result name="input" type="redirectAction"> prepare </result> <result name="error">error.jsp</result> </action> So if the parameters are ready, the request is going to be forwarded to form.jsp. And JSP page will render these parameters into a form. If user input right things, the page will go to next JSP page. But if user input is wrong, the request is forwarded to prepare.action again for page display. What I want to achieve here is to direct user back to the input page, and they can see the values they just input, and error messages will be there as well. This logic work fairly well if the form in JSP is static. But it wont work in above situation. When I enter something wrong, the browser will refuse the request, and display this message: "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I can understand the browser's concern, but can anyone give me some suggestions on how to get around this problem? The best scenario would be to direct user back to the input page with error message and previous values on it. Thank you in advance for any help here. Cheers, Jipu --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org