But if you followed the tutorial, there should be a servlet mapping in your web.xml looking like what I copied and pasted from the article below:

<servlet>
   <description>Create Customers Servlet</description>
   <display-name>ListCustomers</display-name>
   <servlet-name>ListCustomers</servlet-name>
   <servlet-class>servlet.ListCustomersServlet</servlet-class>
</servlet>
<servlet-mapping>
   <servlet-name>ListCustomers</servlet-name>
   <url-pattern>/ListCustomers</url-pat-tern>
</servlet-mapping>

This defines a servlet in the <servlet> element and then defines the URLs this servlet should service in the <servlet-mapping> element. In this case there doesn't need to be a physical file named ListCustomers in the top level of the DbTest webapp.

Your tutorial was very much geared to showing you how Eclipse works, more or less assuming you had some familiarity with servlet and/or java programming. I would recommend finding some tutorial material that focuses on servlet/jsp programming, ignoring IDEs like Eclipse.

--David

sam wun wrote:
HI there,



It sounds logical, but there is no LIstCustomers in the DBTest folder.



Thanks

Sam



----- Original Message -----
From: David Smith
Sent: 27/08/08 09:59 pm
To: Tomcat Users List
Subject: Re: Can't execute servlet project

I see .... the jsp is a view and as such wasn't designed to be run on it's own. Try http://localhost/DBTest/ListCustomers in your browser. That should hit the servlet which in turn should generate the required bean and forward the user to your jsp.

--David


sam wun wrote:
Hi, thanks for trying to help.

I dont' have a clue on this *bean*.

The entire tutorial doesn't mention about how to setup a bean...



The tutorial I;ve followed is shown as below:

http://java.sys-con.com/node/152270





Thanks

Sam





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to