Hi

In my opinion your servlet must reply a HTML message as "OK your are logged" with an 
embeded javascript
code opening a new window (with open) at the onLoad BODY event.

But your have to know that for a security restriction, javascript is enable to open a 
window from a
diff�rent server (url root)
that the HTML is coming from.

Bye, hope I'd helped you.

Gerardo Macari wrote:

> I want to load a url from a servlet. I have used:
>
> res.setStatus(res.SC_MOVED_PERMANENTLY);
> res.setHeader("Location",url);
>
> where res = HttpServletResponse
>
> the problem is that I am getting the data from a form which is inside a html "window"
> i.e var win = open("url","login window") (javascript).
>
> so when I use the above code it loads the url inside the window. I want to load in a 
>new browser
> window. Is there a method akin to appletcontext.showDocument(URL url,String target), 
>so I can specify
> target = _balnk etc...
>
> thanks,
>
> gerardo
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to