Hi Gerardo !!

This problem could not be resolved from server side ( as far as i know);

But U can specify in the html page like this:

<form action="  "  target="_top" >
                           target="_blank"

If U don't have a form tag i mean U  calling the servlet like
http://www.somewhere.com/servlet/MyServlet?param1=eee&param2=ffff

than U can use window.open(   )  (JavaScript);

Hope it helps.

Best wishes,
                    Andras

-----Original Message-----
From: Gerardo Macari <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, May 10, 1999 6:35 PM
Subject: redirection problem


>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