This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Different ways for Contex
 
Similar Threads
avoiding localhost
where to put war
Run Servlet of my web
just a simple question
TOMCAT - Path to GIF files