Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handle main home page by servlet instead of index.html?

 
zhangzh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tomcat 3.1
i deployed my sample application to webapps\dvd;
in browser, http://localhost:8080/dvd will inovke
webapps\dvd\index.html by default.
i'm trying to invoke a servlet by 'http://localhost:8080/dvd'
by dispatching to 'another.html' (rename index.html
to another.html).
set mapping url to '\' in web.xml didn't work.
is there any way to do this?
thanx,
zhangzh
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

zhangzh:
My understanding the Tomcat doc was a little different in the
way we create our applications. We have to create all our
stuff under the ...\doc\appdev dir and then use the
build script which sets everything right and copies the
approppriate stuff in the correct places under the webapps
dir.
Please refer the Tomcat Deployment Descriptor for detailed
step-by-step procedure.
Regds.
- satya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic