To expand on Vic's comments.

Yes the share the same session id but they also have a JavaScript
relationship. The opener parent can be accesses from the child window from
referencing the window.opener API. If the new window is assigned to a
windows variable then the parent can reference that child and make calls in
a similar way:

var childWindow = document.open('etc');
chldWindow.style.left = '0px';
etc etc

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Vic
Sent: 01 August 2005 14:38
To: Struts Users Mailing List
Subject: RE: forward to a new window

> 1. What are the relations between the new window and the original one?
> Do they share the same session attributes?

Typically, the parent & child window will share the same session attributes.


> 2. How do you define a child window in JSP - can you please attach an
> example?

You would have to use javascript to do something like:

<a href="#" onclick="document.open('childname','','');"
target="childname">link</a>


Vic



> Rivka
>
> -----Original Message-----
> From: Mark Benussi [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 01, 2005 3:12 PM
> To: user@struts.apache.org
> Subject: RE: forward to a new window
>
> when writing a link the target attribute can be set with _new or _blank
> or
> even the name of a child window. When youclick on the link it will open
> in
> said new window.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
****************************************************************************
**********************
> The contents of this email and any attachments are confidential.
> They are intended for the named recipient(s) only.
> If you have received this email in error please notify the system manager
> or  the
> sender immediately and do not disclose the contents to anyone or make
> copies.
>
> ** eSafe scanned this email for viruses, vandals and malicious content. **
>
****************************************************************************
**********************
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to