Re: forward to a new window
Hi Rivka, Try the following: a href=/youraction target=new_window_namelink/a This will open your action in a new window. Vic Hi friends I would like to know if there is a way of forwarding a request to a new explorer window. For example, in the current window I have a list of books and a link to a book details page for each book in the list - how do I open the book details in a new window using Struts? Thanks Rivka ** 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]
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]
RE: forward to a new window
Thanks guys 2 related questions: 1. What are the relations between the new window and the original one? Do they share the same session attributes? 2. How do you define a child window in JSP - can you please attach an example? 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]
RE: forward to a new window
shalom rivka, there is no whatsoever relation between html-controled browser windows and the backend struts-java-code. besides, you can access the new window from the old window using its name, and you can access the old window from the new window by window.opener or window.parent (depends on how you open it). Sessions are not window-based, sessions are browser based, as long as the browser sends the same cookie back, it will be identified as the same session, and yes normally the browser sends the same cookie for child windows. you can't define a child window in jsp, you can do it in html or javascript. like window w = window.open(theURL,winName,features); regards leon On Mon, 2005-08-01 at 16:31 +0200, Rivka Shisman wrote: Thanks guys 2 related questions: 1. What are the relations between the new window and the original one? Do they share the same session attributes? 2. How do you define a child window in JSP - can you please attach an example? 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]
Re: forward to a new window
The only way is to include JS code in your response, to open a new windows for that resource. Questions like this one usually come from designs that can be improoved though. hth, Manos Rivka Shisman wrote: Hi friends I would like to know if there is a way of forwarding a request to a new explorer window. For example, in the current window I have a list of books and a link to a book details page for each book in the list - how do I open the book details in a new window using Struts? Thanks Rivka ** 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]
Re: forward to a new window
Sorry, i only read the first paragraph :-/ Manos Emmanouil Batsis wrote: The only way is to include JS code in your response, to open a new windows for that resource. Questions like this one usually come from designs that can be improoved though. hth, Manos Rivka Shisman wrote: Hi friends I would like to know if there is a way of forwarding a request to a new explorer window. For example, in the current window I have a list of books and a link to a book details page for each book in the list - how do I open the book details in a new window using Struts? Thanks Rivka ** 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]
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=childnamelink/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]
RE: forward to a new window
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=childnamelink/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]
RE: forward to a new window
you got to specify the target in the href or form action or whatever method you are using it From: Rivka Shisman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: forward to a new window Date: Mon, 1 Aug 2005 16:11:04 +0200 Hi friends I would like to know if there is a way of forwarding a request to a new explorer window. For example, in the current window I have a list of books and a link to a book details page for each book in the list - how do I open the book details in a new window using Struts? Thanks Rivka ** 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]