struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <>
Subject RE: forward using Struts
Date Thu, 06 Mar 2003 20:51:36 GMT
No, that won't work either.  But you are right about this being html

Once you submit a form, you cannot forward it to any window.  In fact,
you are not really forwarding it to anything.  When the browser submits
a form, it is simply making a request for a document that it can display
in its window.  The document name might happen to be called '',
but your browser doesn't know that there is no such document by that
name, it simply retrieves the stream and displays it in the browser.

Where (I think) you were going with your question is how to have the
results of some process display in another window.

You need to answer a few questions first.

Do you want the user to still see the form (as it was filled out prior
to hitting submit)?
If yes, then you will submit that form to a new target (<html:form .....
If no, then you must use JavaScript.  After the page is submitted, you
process the form and return the user to some page that can (with
JavaScript) open a new window to a URL that you specify.

James Mitchell
Web Developer/Struts Evangelist

"People demand freedom of speech to make up for the freedom of thought
which they avoid."
    - Soren Aabye Kierkegaard (1813-1855)

> -----Original Message-----
> From: Robert S. Sfeir [] 
> Sent: Thursday, March 06, 2003 3:36 PM
> To: Struts Users Mailing List
> Cc: Robert S. Sfeir
> Subject: Re: forward using Struts 
> make the button a link and use target="_blank"  this is html stuff.  
> The link can point to a new URL which will call your Action.
> On Thursday, Mar 6, 2003, at 15:32 US/Eastern, Pani R wrote:
> > Hi:
> >
> > I have 3 SUBMIT buttons and one of which, when clicked, should open 
> > the resultant page in a new browser. I dont want to use 
> JavaScript. I 
> > want the ActionClass to handle the request and for a 
> particular Submit 
> > button, it should forward the JSP to a new browser.
> >
> > Can struts forward the page to a new browser?
> >
> > -Pani.
> >
> >
> >
> > _____________________________________________________________
> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message