I am very sorry for not getting what u explained. I am not very good in
Servlets. But i can tell u the work arounds for this. Hope this will help
you.

PrintWriter out = res.getWriter();

out.println("<HTML>");
out.println("<HEAD>");
out.println("<META HTTP-EQUIV='Refresh' CONTENT='0;
URL=http://www.hotmail.com'>");
out.println("</HEAD>");
out.println("</HTML>");

-sunil




>From: Matthew <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How to load a URL
>Date: Thu, 30 Nov 2000 16:02:11 -0500
>
>Well, heres what my servlet does, maybe it will help illustrate what I'm
>looking for:
>-Takes input from a form, which is to be the IP address of a host
>-Does computation on the address
>-takes the new address and loads that in the clients browser.
>
>I suppose it can be done all in client side, but I am trying to only use
>servlets, since that is the focus of my independant study class.. Thank
>you for your advice though :)
>-Matt
>
>On Thu, 30 Nov 2000, sunil madan wrote:
>
> > Hi Matt,
> >
> > I think, this would be better to do this on client side only. If you
>just
> > need to redirect to a URL. Why don't you go for javascript.
> > That's a one line statement "window.location=textbox.value".
> > That's it.
> >
> > -sunil
> >
> > >From: Matthew <[EMAIL PROTECTED]>
> > >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> > >        Servlet API Technology." <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: How to load a URL
> > >Date: Thu, 30 Nov 2000 09:12:15 -0500
> > >
> > >This might be a very basic question, but I would like to know the most
> > >efficient way to do this. I have a servlet that gets a URL from a form.
> > >How can I load the URL into my browser? I know with applets, you can do
> > >something like getAppletContext().showDocument(myURL); but is there a
> > >simple way to do this from a servlet?
> > >  -Matt
> > >
> >
> >___________________________________________________________________________
> > >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
> >
> >
>_____________________________________________________________________________________
> > Get more from the Web.  FREE MSN Explorer download :
>http://explorer.msn.com
> >
> >
>___________________________________________________________________________
> > 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

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

___________________________________________________________________________
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