J,

I think your are missing a directory. Shouldn't it be
http://machine-name:port/examples/servlet/servlet-name

Whenever I can't get something working, it's usually just getting all your
directories organized. Read the tutorial on Javasoft.com.. It tells you
how to set up your directories.

sue

J wrote:

> I am having a problem understanding how to run servlets.  The Java
> Tutorial says the following:
> http://machine-name:port/servlet/servlet-name
> For example, the servlet that delivers the main page of Duke's Bookstore
> has the property
>      servlet.bookstore.code=BookStoreServlet. To see the main page of
> the example, type the following
>      URL into your browser:
>          http://localhost:8080/servlet/bookstore
>
> Per my understanding, I should set the code property in the
> servlets.properties file as follows:
> servlet.bookstore.code=BookStoreServlet
>
> Then I should be able to type the location in a browser as follows:
> http://localhost:8080/servlet/bookstore
> I have had no success with this. I believe it is because of the start
> location which is set in the webserver.xml which is called when I invoke
> startserver.bat  The start server is located in at g:/jswdk-1.0/
> directory.  Where do I put my Duke's Bookstore files in relationship to
> the startserver.bat file?
> I believe I need to change this line of code in the webserver.xml but I
> do not understand how this works even after reading the directions
> located in the same file. <WebApplication id="examples"
> mapping="/examples" docBase="examples"/>
>
> Any advice or direction to another source of information that will
> explain the webserver.xml file in a different way would be appreciated.
>
> John
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to