| Author |
Invoking a Servlet via "servlet/"
|
claude jones
Greenhorn
Joined: Dec 14, 2001
Posts: 24
|
|
Hello All, I have a jar file which contains a class that I would like to invoke by calling: http://localhost:8080/chart/servlet/com.chart.DisplayChart?fileName="testChart" I have a requirement not force people to use the web.xml servlet-mapping. The jar file is located in c:\myapp\WEB-INF\lib\chart.jar Any idea? I know every web server that supports servlets will have a servlets_root directory. I just don't know where this is in Tomcat 1.4.24. Thanks, Claude.
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 11863
|
|
Running a servlet by using a URL that says /servelt/ is handled by the "invoker" servlet - see the tomcat-home/conf/web.xml for a discussion. In Tomcat 4.1.24 the invoker servlet is only turned on in the /examples directory. It used to be on by default - which has caused untold confusion. If you want people to be able to use the /servlet style, they will have to change the web.xml configuration of the web application.
|
Java Resources at www.wbrogden.com
|
 |
claude jones
Greenhorn
Joined: Dec 14, 2001
Posts: 24
|
|
Thanks! That did the trick! Claude.
|
 |
 |
|
|
subject: Invoking a Servlet via "servlet/"
|
|
|