--

On Thu, 6 Mar 2003 15:51:36   
 James Mitchell wrote:
>No, that won't work either.  But you are right about this being html
>stuff.
>
>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 'mypage.do',
>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.
>

Thanks for the thoughts James. 

>Do you want the user to still see the form (as it was filled out prior
>to hitting submit)?

YES!

>If yes, then you will submit that form to a new target (<html:form .....
>target="_new">)

In this case, all three buttons is going to open the result in a new page which I dont 
want. I want only one button to open the page in a new browser and other 2 buttons 
when clicked should open the page in the same browser.


-Pani.


>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
>http://jakarta.apache.org/struts/
>
>"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 [mailto:[EMAIL PROTECTED] 
>> 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.
>> > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
>> >
>> > 
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to