Successive Struts Forwards?

B

bill.blackmon

I have a problem regarding successive 'submits' or redirects using
Struts.
From page 1, the user selects a document from a list.
The document info is then stored and the user is forwarded to page 2.
The user is then asked to accept some terms and conditions on page 2
by clicking the following link:
<a href="/media/submitMediaItem.do?submitAction=tcAccept">

This calls an action that opens a document on the file system using the
configured
application to handle the file type. The document is either then opened
or
saved.

The state of the web app remains on page 2.
I need to automatically go back to page 1 but last action called has
taken me
'out of the loop' so to speak.

I imagine there must be a JavaScript solution to this but I have no
idea what it
might be.

Any help would be greatly appreciated!
 
R

Ryan Dillon

This might work: When the user accepts, send them back to the first
page (where you want them to end up after the download) and
automatically initiate the download from there. There are plenty of
sites that do this automatic download kind of thing, sourceforge is one
example I can think of. They use the following tag to achieve this:

<META HTTP-EQUIV="refresh" content="5;
URL=http://optusnet.dl.sourceforge.net/sourceforge/jtds/jtds-1.0.2-dist.zip">

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top