permaculture playing cards*
The moose likes Tomcat and the fly likes deploy servlate name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "deploy servlate name" Watch "deploy servlate name" New topic
Author

deploy servlate name

Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
Hi Adam Hardy
i using now apache jserv1.1.2
all my servlet filed stored in this /servlet directory.when i run servlet file using this url
http://localhost:8080/servlet/hello.
what i want is with out servlet name in the above url like this i want is it possible Mr.Hardy
http://localhost:8080/XXXX/hello.

Here xxxx is some name i.e any name can i use..

Is it possible .where i can change properties in this apache jserv1.1.2.
Thanking you
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Hi
I do not know 'apache jserv1.1.2', BUT with tomcat you can in the web.xml of the webapp e.g. ROOT specify a <servlet-mapping>.

http://127.0.0.1/servlet/ServiceServlet
should then be:
http://127.0.0.1/somename/ServiceServlet
/Rene
[ June 18, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
thank you mr.rene..this is help full for me.
But actaully i need on apache jserv...ok 10q alot .. have a nice day
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Hi
Maybe this link can help you: http://java.apache.org/jserv/install/howto.servlets.html
/Rene
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploy servlate name
 
Similar Threads
URL mappings
multiple URL mapping for one web app
Obtain Get Parameters using HttpServletRequest
Passing URL in src attribute
questions where to put the servlets