RE: Servlet URLs

2001-02-09 Thread Cumming, Murray

Murray Cumming wrote:
 Is there any way to use servlets (not JSPs) with
 tomcat without using
 '/servlet/' in the URL. I am trying to set up a
 system which already uses
 fixed URLs. 

Scott Walter wrote:
 just specify the url mapping in the web.xml file.  It
 does not have to have servlet in it.  For example I
 have a servlet that processes a login from an html and
 the url to the servlet is:

 http://localhost/processlogin or 
 http://localhost/myapp/processlogin

But as I understand it, I would have to map each class individually. I have
hundreds of classes.

Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Servlet URLs

2001-02-08 Thread Scott Walter

just specify the url mapping in the web.xml file.  It
does not have to have servlet in it.  For example I
have a servlet that processes a login from an html and
the url to the servlet is:

http://localhost/processlogin or 
http://localhost/myapp/processlogin

cheers,
scott.
--- "Cumming, Murray" [EMAIL PROTECTED]
wrote:
 I am using tomcat with Apache (on Solaris).
 
 The tomcat example servlets are at URLs such as:
 

http://www.somedomain.com/examples/servlet/HelloWorldExample
 
 but the actual class file is at e.g.

/usr/local/jakarta-tomcat/webapps/examples/WEB-INF/classes/HelloWorldExample
 
 The 'servlet' directory is not in the actual path,
 and it is not in the
 context path in jakarta's conf/server.xml file. This
 'servlet' part of the
 URL seems to be used in mod_jk.conf-auto for a
 JKMount command, as a result
 of a JKMount command in mod_jk.conf.
 
 So:
 Is there any way to use servlets (not JSPs) with
 tomcat without using
 '/servlet/' in the URL. I am trying to set up a
 system which already uses
 fixed URLs. 
 
 Murray Cumming
 [EMAIL PROTECTED]
 www.murrayc.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
[EMAIL PROTECTED]


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]