You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "GU,JAMES (HP-Corvallis,ex1)" <ja...@hp.com> on 2001/01/23 17:36:35 UTC
how to change the window target in a JSP file?
Does anyone know how to have dynamic control in a JSP file which browser window
that JSP file itself should be displayed? For example, I have two browser window
A and B and submit a form from one of the windows. After processing that
request, I return foo.jsp. The difficulty is that I want to display foo.jsp in A
if certain conditions are detected on the SERVER side, otherwsie, display
foo.jsp in B. I tried the header window-target, which only worked in netscape.
I am not talking about the target attribute of form or link etc because they are
client-side control and can be only used to define the window target for the
next JSp file.
Thanks.
-james
Re: how to change the window target in a JSP file?
Posted by Micael Padraig Og mac Grene <ca...@harbornet.com>.
I hope this is helpful. Whatever is doing the "detecting" on the server
side should be able to send a response object to go wherever you want. What
is doing the "detecting" in your terms?
----- Original Message -----
From: "GU,JAMES (HP-Corvallis,ex1)" <ja...@hp.com>
To: <ge...@jakarta.apache.org>
Sent: Tuesday, January 23, 2001 8:36 AM
Subject: how to change the window target in a JSP file?
>
> Does anyone know how to have dynamic control in a JSP file which browser
window
> that JSP file itself should be displayed? For example, I have two browser
window
> A and B and submit a form from one of the windows. After processing that
> request, I return foo.jsp. The difficulty is that I want to display
foo.jsp in A
> if certain conditions are detected on the SERVER side, otherwsie, display
> foo.jsp in B. I tried the header window-target, which only worked in
netscape.
>
> I am not talking about the target attribute of form or link etc because
they are
> client-side control and can be only used to define the window target for
the
> next JSp file.
>
> Thanks.
>
> -james
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>
>