aspose file tools
The moose likes Tomcat and the fly likes Invoking a Servlet via Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Invoking a Servlet via "servlet/"" Watch "Invoking a Servlet via "servlet/"" New topic
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.
 
IntelliJ Java IDE
 
subject: Invoking a Servlet via "servlet/"
 
Threads others viewed
making class files together
Calling a servlet which contains so many different files
how to a war file in TOMCAT
SOS
servlet URL
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture