RE: change default servlet

2001-05-30 Thread Randy Layman


Either create a mapping in the web.xml file (using servlet and
servlet-mapping tags, or edit the server.xml file and change the
ServletInvoker's prefix.  The first is definitely the preferred method since
its supported by the JSP Spec and doesn't affect any other servlets.  The
second is less flexible.

Randy

 -Original Message-
 From: Asa Bar-David [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: change default servlet
 
 
 Hi,
 
 How can I change the default /servlet/ uri when I am 
 posting to servlets ?
 



RE: change default servlet

2001-05-30 Thread Asa Bar-David

Thanks for the reply,

when deploying a WAR file I always need to add the WAR file name before the
/servlet/
for example: if the WAR file name is Tash.war when posting to a servlet I
need to write /Tash/servlet/servletName.
On the IDE I'm using (Forte for java)the default servlet uri is /servlet/
with no need to add the lib name Tash before it.
so anything I do on the IDE will not work on tomcat because it's looking for
the Tash before the /servlet/.

what can I do to easily deploy war file from the IDE to
tomcat with out the need to add the WAR file name before the /servlet/



-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 4:21 AM
To: [EMAIL PROTECTED]
Subject: RE: change default servlet



Either create a mapping in the web.xml file (using servlet and
servlet-mapping tags, or edit the server.xml file and change the
ServletInvoker's prefix.  The first is definitely the preferred method since
its supported by the JSP Spec and doesn't affect any other servlets.  The
second is less flexible.

Randy

 -Original Message-
 From: Asa Bar-David [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 30, 2001 5:43 PM
 To: [EMAIL PROTECTED]
 Subject: change default servlet


 Hi,

 How can I change the default /servlet/ uri when I am
 posting to servlets ?





RE: change default servlet

2001-05-30 Thread Michael Wentzel

 when deploying a WAR file I always need to add the WAR file 
 name before the
 /servlet/
 for example: if the WAR file name is Tash.war when posting to 
 a servlet I
 need to write /Tash/servlet/servletName.
 On the IDE I'm using (Forte for java)the default servlet uri 
 is /servlet/
 with no need to add the lib name Tash before it.
 so anything I do on the IDE will not work on tomcat because 
 it's looking for
 the Tash before the /servlet/.
 
 what can I do to easily deploy war file from the IDE to
 tomcat with out the need to add the WAR file name before the /servlet/

You could always try an ant script.  If you write it well you would only
have to have a single
one for all of your webapps.  I'm not well versed in ant so I'll leave it to
you or someone else
to follow up on this one.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com