IIS with Tomcat: Change default servlet directory

2001-09-12 Thread Albert

Hi All,

I've installed Tomcat on Winnt4 with IIS4 and I've
followed the instructions in Tomcat IIS HowTo to let
IIS cooperate with Tomcat. It works if I set the home
directory of my Web site in IIS to d:\tomcat (for my
case, TOMCAT_HOME = d:\tomcat). I can run the servlet
examples included in Tomcat successfully. Now I decide
to change the home directory of my Web site in IIS to
another directory (for my case, new home directory =
d:\myWeb) and also put my servlet classes into another
directory e:\myServlet. However, I don't know how to
set config files to let my servlet classes be
executed. Would anyone help me with an example for my
case? Thanks in advance!!

Albert


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



change default servlet

2001-05-30 Thread Asa Bar-David

Hi,

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




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