hi
if u are making ur own directory then u need to add a context path
entry in the server.xml file under conf dir of tomcat. It shd be very similar to
the others..docBase is where ur web-inf is situated.
also copy and paste the web.xml into ur web-inf dir that u hv created. take web.xml from any
of the other web-inf dirs.
then to access ur web doc.in the url..
use
ur_folder is the folder, which is also the super dir of ur web-inf u hv jsut created.
 
hope this helps,
anoop
----- Original Message -----
Sent: Tuesday, October 09, 2001 10:30 AM
Subject: How to run a servlet

Hi,
        I want to know how to run a servlet in the tomcat 3.2.3 engine...
What r the entries to be made and where?.. I created my own directory and in
that WEB-INF and WEB-INF\classes and placed an example web.xml file in the
WEB-INF folder... I kept some html and jsp files, which are running very
well but I am not able to run servlets... I want to know what are the
entries that r to be made for the servlet to run... And also one more
question... I am accessing my directory from the browsing by entering
http://localhost/xxx ("xxx" is folder name, running both apache and
tomcat).. How can I make this xxx folder the root directory for the
localhost and how to host sites in the apache/tomcat? What needed to be done
for this? Thanks in advance for the answers...

___________________________________________________________________________
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
  • ... Steck Andreas
    • ... Lee Chor-Hock
    • ... Rajeev Arora
    • ... Steck Andreas
    • ... Rajeev Arora
    • ... V T R Ravi Kumar
    • ... Madhu Gopal Panyala
    • ... <John Thomas>
    • ... Shiva.Devaguptapu
      • ... anoop
        • ... Медер Бакиров

Reply via email to