Suresh,

If you are using TOMCAT as your Servlet container, here is what you need
to do.

Assuming that you have installed Tomcat at C:\tomcat; your
servlet class is 'Serv01.class' and the html page you need to
redirect to is 'test01.html'

Place your test01.html at C:\tomcat\webapps\ROOT

To redirect to an HTML page

 response.sendRedirect("/test01.html");

To redirect to another Servlet

 response.sendRedirect("/servlet/Serv02");

Your Serv01.class and other servlet classes should be copied to
C:\tomcat\webapps\ROOT\Web-Inf\classes

Start Tomcat

Access your Serv01.class as follows

http://localhost:8080/servlet/Serv01

Good Luck !

___________________________________________________________________________
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