help running servlets

This is a discussion on help running servlets within the Linux Networking forums, part of the Linux Forums category; I have jakarta-tomcat-5 installed alongside my apache web server. I have been trying to get servlets running but ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-15-2004
Allan Bruce
 
Posts: n/a
Default help running servlets

I have jakarta-tomcat-5 installed alongside my apache web server. I have
been trying to get servlets running but cant seem to get it right. How do I
run a servlet using tomcat? Once it is running, is there a special
directory structure to get to it, e.g. http://<server>/servlet/ ?
Thanks
Allan


Reply With Quote
  #2 (permalink)  
Old 01-15-2004
Jan Geertsma
 
Posts: n/a
Default Re: help running servlets

The servlets run in a "context" and these are defined in the conf/server.xml
(and also the portnumber).
This context usually resides in the webapps directory. In this directory
there is a WEB-INF subdir which contains the web.xml which has mappings for
the servlet into a java path, which would normally reside in one jar files
in the lib director

So the linux directory WEB-INF/web.xml will have servlet mappings.
The url will be in the form of http://<server>:8080/context/servlet
Check the examples to see it in action... goodluck, Jan

"Allan Bruce" <allanmb@TAKEAWAYf2s.com> wrote in message
news:bu61ub$uto$1@news.freedom2surf.net...
> I have jakarta-tomcat-5 installed alongside my apache web server. I have
> been trying to get servlets running but cant seem to get it right. How do

I
> run a servlet using tomcat? Once it is running, is there a special
> directory structure to get to it, e.g. http://<server>/servlet/ ?
> Thanks
> Allan
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0