Computing.Net > Forums > Programming > Tomcat 5 Help!!!!!!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Tomcat 5 Help!!!!!!!

Reply to Message Icon

Name: deity_me
Date: October 22, 2003 at 15:44:00 Pacific
OS: Mandrake 9.1
CPU/Ram: P3 750
Comment:

I need help!!
i almost got tomcat5 up and running - it can display static html and some jsp - but all these stuff are in the /usr/local/webapps/ROOT directory

i'm trying to test its servlet stuff

i have a Test.java file and compiled it into a Test.class file

my problem is where can i dump this class file, do i need to edit a web.xml file and where should i point my browser to see this?

i need a doc page that explains how to use tomcat - something thats easy to understand

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: saddam
Date: October 22, 2003 at 16:18:00 Pacific
Reply:

try the linux forums. there is probaly better luck there.


0

Response Number 2
Name: gpp
Date: October 23, 2003 at 05:39:16 Pacific
Reply:

This isnt a linux problem.. Servlets need to go in the WEB-INF. Possibly the directory structure could look like this:

/WEB-INF/classes

all of your servlets should then go in the classes folder.

You also need to add a servlet mapping to your web.xml

ex)

<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>classes.MyServlet</servlet-class>
</servlet>


0

Response Number 3
Name: deity_me
Date: October 24, 2003 at 01:39:46 Pacific
Reply:

thanks got my tomcat up and running


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Tomcat 5 Help!!!!!!!

SQL 6.5 Help www.computing.net/answers/programming/sql-65-help/820.html

VB 5 Help www.computing.net/answers/programming/vb-5-help/9696.html

FCKEditor error www.computing.net/answers/programming/fckeditor-error/14665.html