Hi Abraham,
    I just Installed tomcat 3.2.3 and places
html,servlet files as u said.And redirect method is
working fine.
    I placed the files in root directory.But suupose
If I want to create My own folder in Tomcat.how to do
that?
Thanks & Regards
Suresh
--- Abraham Varghese <[EMAIL PROTECTED]>
wrote:
> 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
>


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.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