Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes handle main home page by servlet instead of index.html? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "handle main home page by servlet instead of index.html?" Watch "handle main home page by servlet instead of index.html?" New topic
Author

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

zhangzh
Greenhorn

Joined: Sep 22, 2000
Posts: 10
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

Joined: Jun 03, 2000
Posts: 5040

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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: handle main home page by servlet instead of index.html?
 
Similar Threads
problem in running a servlet
setting index.html to my context root
Unable to view application
Running self made Servlets on tomcat
Problem getting Servlets to work correctly with Tomcat