Is there any way to submit a page dynamically using Struts tags? Right now I'm having two pages A & B. Page A calls an action class, which will call Page B on success Page A -> action class1 -> Page B But I would like to introduce an interim page A1 (between A & B), which will show some text message to the user. 1. Page A calls an action class on submit, which will redirect to Page A1 (on success) 2. Then Page A1 calls another action class dynamically (no user submission), which will re-direct to Page B. User Submitting Page A -> action class1 -> Auto Submission of Page A1 -> action class2 -> Page B Introducing Page A1 to show some text message to user, when the application processing at the back end. But I don't know how to submit Page A1 dynamically. Tried to submit using response.sendRedirect, RequestDispatcher & java script submission. Is there any one help me on this? Thanks in advance. [ April 25, 2003: Message edited by: Bala Rajamani ]
Joined: Nov 15, 2002
If I understand you correctly, you want page A1 to automatically forward itself to the new action after a set period of time? There are a few ways to do that, both on the client side. Note that niether is 100% compatible with all browsers, but you can use both in the same page - and get close. Place in your header, which forwards to a target, index.jsp in this case, after a wait of 15 seconds.
Hope this helps.
Joined: Sep 12, 2000
Joined: May 09, 2001
If it is just to show an intermediate message, i would suggest the same page to show the intermediate message(instead of using a different jsp). just i put the whole screen in <div> and made it visible till the submit, after the submit the rest i made invisible and put a message in the same screen. I am not sure if it works fine in netscape navigator...