oh ok. got it. Thank you very much for your response.


From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Users Mailing List" <user@struts.apache.org>
CC: user@struts.apache.org
Subject: Re: popup window
Date: Thu, 6 Apr 2006 13:57:02 -0400 (EDT)

No, the path attribute is still meant to point to some resource, usually a
JSP.  The JSP it points to should contain that markup.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Thu, April 6, 2006 1:48 pm, fea jabi said:
> instead of
> <forward name="successReturn" path="/PrepareAddAction.do"
> redirect="false"/>
>
> should I do
> <forward name="successReturn"
> path="<html><head><title></title></head><body
>> > onLoad="window.close();"></body></html>" redirect="false"/>
>
>
>
>>From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
>>To: "Struts Users Mailing List" <user@struts.apache.org>
>>CC: user@struts.apache.org
>>Subject: Re: popup window
>>Date: Thu, 6 Apr 2006 13:31:42 -0400 (EDT)
>>
>>You could do that, and just return null from the Action, that would work.
>>I would suggest however that the JSP that successReturn points to should
>>be the markup.  I tend these days to want to stay away from dynamically
>>creating markup in code (be it an Action or Servlet or whatever else).
>>
>>--
>>Frank W. Zammetti
>>Founder and Chief Software Architect
>>Omnytex Technologies
>>http://www.omnytex.com
>>AIM: fzammetti
>>Yahoo: fzammetti
>>MSN: [EMAIL PROTECTED]
>>Java Web Parts -
>>http://javawebparts.sourceforge.net
>>Supplying the wheel, so you don't have to reinvent it!
>>
>>On Thu, April 6, 2006 1:25 pm, fea jabi said:
>> > Thankyou for your response.
>> >
>> > Do you mean
>> >
>> > instead of
>> > return mapping.findForward("successReturn");
>> >
>> > I should write the below in dispatch action.
>> > return "<html><head><title></title></head><body
>> > onLoad="window.close();"></body></html>";
>> >
>> >
>> >
>> >
>> >>From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
>> >>Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
>> >>To: "Struts Users Mailing List" <user@struts.apache.org>
>> >>CC: user@struts.apache.org
>> >>Subject: Re: popup window
>> >>Date: Thu, 6 Apr 2006 12:22:29 -0400 (EDT)
>> >>
>> >>Firstly, there is a Wiki page that may or may not be helpful:
>> >>
>> >>http://wiki.apache.org/struts/OpenWindowFromAction
>> >>
>> >>On Thu, April 6, 2006 10:24 am, fea jabi said:
>> >> > want to open a popup window when the user clicks on a button. how
>> to
>> >> do
>> >> > that?
>> >> > do not want to update any fields when the window is closed from
>> where
>> >>the
>> >> > popup window was opened by click of a button.
>> >>
>> >>If I'm understanding you correctly, you want a user to click a button
>> on
>> >>some page, which results in opening a new window.  In the new window
>>they
>> >>can enter some data and submit it, and you want the window to close
>> when
>> >>that submission completes.
>> >>
>> >>To do that, simply forward to an HTML document like this from the
>> Action
>> >>that accepts the form submission from the popup:
>> >>
>> >><html>
>> >><head>
>> >><title></title>
>> >></head>
>> >><body onLoad="window.close();">
>> >></body>
>> >></html>
>> >>
>> >>That should do the trick.  Unless I didn't understand of course :)
>> >>
>> >>Frank
>> >>
>> >>
>> >>--
>> >>Frank W. Zammetti
>> >>Founder and Chief Software Architect
>> >>Omnytex Technologies
>> >>http://www.omnytex.com
>> >>AIM: fzammetti
>> >>Yahoo: fzammetti
>> >>MSN: [EMAIL PROTECTED]
>> >>Java Web Parts -
>> >>http://javawebparts.sourceforge.net
>> >>Supplying the wheel, so you don't have to reinvent it!
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >
>> > _________________________________________________________________
>> > Don’t just search. Find. Check out the new MSN Search!
>> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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]
>>
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from McAfee®
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> ---------------------------------------------------------------------
> 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]


_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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

Reply via email to