aspose file tools*
The moose likes Servlets and the fly likes Different ways for Contex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Different ways for Contex" Watch "Different ways for Contex" New topic
Author

Different ways for Contex

jbig zala
Greenhorn

Joined: Sep 20, 2004
Posts: 11
Hai Friends,
m practicing servlets using tomcat4 on windows.
I have created context under webapps folder and modification in server.xml as under

<Context path="/myweb" docBase="webapps/myweb" />
and accessing my servlets using
http://localhost:8080/myweb/servlet/servletname.

I want to know that what are other way to create context in TOMCAT4 ???


Learning Never Ends ...................
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"Quick Learner",
Sorry but you've been asked to change your display name a few times. Please see the thread here.

Please do it soon, accounts with invalid display names gete deleted, often without warning.

thanks,
Dave.
Richard Bradford
Ranch Hand

Joined: Apr 20, 2004
Posts: 48
You shoud create a web.xml file and place it in your web applications WEB-INF folder. You can then write servlet definitions and mappings in the web.xml file to access your servlet.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Different ways for Contex