• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different ways for Contex

 
jbig zala
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic