Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Different ways for Contex" Watch "Different ways for Contex" New topic

Different ways for Contex

jbig zala

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

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

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

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.

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.
I agree. Here's the link:
subject: Different ways for Contex
It's not a secret anymore!