aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: handle main home page by servlet instead of index.html?