tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Navanee <>
Subject Re: Servlets -- help needed
Date Fri, 14 Nov 2003 07:11:33 GMT

I wrote a java program ( and placed the file in this path: 
C:\Program Files\jakarta-tomcat-4.1.27\webapps\examples\WEB-INF\classes
I also compiled that java code. Compilation was successful.

I tried to execute that servlet in the browser using this link :

But it is giving 404 (file not found) error. Why is it so?

How can i access these files in the browser ..?
Means, what link should i give in the browser ?

-- Navanee

Schalk wrote:

>The file structure, for webapps are as follows:
>- In this folder you can place all of your image files, html files, .js,
>.css, and your JSP's.
>- In here you should place all compiled servlet code
>- In here you can place all .jar files that your web application will need
>to have access to.
>- Here goes your .tld and .xml files, for example the web.xml
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.CEO
>Tel: +27125468436
>Fax: +27125468436
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or diclosed to any other party without
>the permission of the sender. If you received this message in error, please
>notify me immediately so that I can correct and delete the original email.
>Thank you. 
>:: -----Original Message-----
>:: From: Navanee []
>:: Sent: Friday, November 14, 2003 7:20 AM
>:: To:
>:: Subject: Servlets -- help needed
>:: Friends,
>:: I want to write a HTML form that will accept some values from the user
>:: and i want to print the values using a servlet program.
>:: I have installed Tomcat 4.1 in my win2k m/c.
>:: This is the folder where i have installed the Tomcat: C:\Program
>:: Files\jakarta-tomcat-4.1.27\webapps
>:: Please tell where (in which folder) i should place the HTML file and
>:: where i should place the Servlet code that will read the values from the
>:: form?
>:: Similarly where should i place the JSP code?
>:: Since there are many folders i often get confused where to place the
>:: code. Any other pointers would be more helpful.
>:: -- Navanee
>:: ---------------------------------------------------------------------
>:: To unsubscribe, e-mail:
>:: For additional commands, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message