just a quick suggestion...
<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <form name="frm" action="test.htm" method="POST"> Field 1:<INPUT type="text" name="txt1"><br> Field 2:<INPUT type="text" name="txt2"><br> <INPUT type="submit" value="Submit" name="submit"> </form> blah blah blah blah blah blah blah blah <SCRIPT LANGUAGE=javascript> <!-- document.frm.action='/rewriteme/myaction.do'; //--> </SCRIPT> <P> </P> </BODY> </HTML> James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://struts-atlanta.open-tools.org > -----Original Message----- > From: Joachim Schaaf [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 12:53 PM > To: Struts Users Mailing List > Subject: Struts with a "wait page" ... > > > Hi community, > > I want to display a "please wait" page when a Struts action is executed, > that redirects to or loads the real page; my current solution > works, but I > have a problem with Struts. > > My solution is as follows: The links and form actions in the JSP > pages have a > ".do" extension, my "WaitServlet" has a servlet-mapping for > "*.do" and the > Struts action servlet has a mapping for ".dox". > The WaitServlet replaces the .do with .dox and redirects to the > JSP "wait" > page, that loads the .dox action with Javascript (body onload=...). > > This works with anchor tags (a href), but not with form tags. The > reason is > that Struts adds a "myaction.dox" to the form action instead of > "myaction.do". > > Any idea how to solve this? > > Regards, > Joachim > > > -- > Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED] > cataloom AG | Eupener Str. 148 | 50933 Köln | http://cataloom.com/ > Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807 > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>