Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: problem with servlet in Professional JSP Second Edition


Message #1 by viper_19901@y... on Wed, 18 Dec 2002 14:34:37
No, you don't have to explicitly set up a context within server.xml.  It
will default. Just to make sure, your directory structure looks like this,
right?

webapps
|
|-- your_app_name
    |
    |--WEB-INF
       |
       |--classes
          |
          |--your package structure

If everything is set up in the correct structure, and all of your classes
are there, I cant see how your syntaxt cannot work. But I sympathize with
you; when I first started out I had ALL KINDS of difficulties getting my
servlets to show up in my browser!! It can be very frustrating!
      

-----Original Message-----
From: viper_19901@y... [mailto:viper_19901@y...]
Sent: Wednesday, December 18, 2002 9:08 AM
To: Pro_JavaServer_Pages
Subject: [pro_jsp] RE: problem with servlet in Professional JSP Second
Edi tion


my apologizies, i am using tomcat 4.1.17 and as the book states i am 
creating all these directories within the webapps folder in tomcat. i get 
it to work fine with a web.xml file, but that is not how the book is 
showing it. am i supposed to set up a context within server.xml? im not 
sure.   thanks again,
   gary



> What web server are you using? I am assuming that you are using Tomcat, 
but
you didn't specifically say so. Bear in mind that the "servlet" syntax you
reference is specific to Tomcat.

Your syntax looks fine to me. 



----------  Internet E-mail Confidentiality Disclaimer  ----------

PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message.  If
you are not the addressee indicated in this message or the employee or agent
responsible for delivering it to the addressee, you are hereby on notice
that you are in possession of confidential and privileged information.  Any
dissemination, distribution, or copying of this e-mail is strictly
prohibited.  In such case, you should destroy this message and kindly notify
the sender by reply e-mail.  Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.

Opinions, conclusions, and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.



  Return to Index