tags:

views:

182

answers:

1

Possible Duplicate:
How to set a Servlet to run as the Homepage in Java?

I'm writing a web app for Oracle App Server using Java. In web.xml, I specify the startup page with


welcome-file-list
      welcome-file index.jsp /welcome-file 
/welcome-file-list
(all that is in xml) so that if the user browses to my site like this, http://www.mysite.com/myapp/, he will automatically get served index.jsp. However, what if I want the user to be directed to a servlet instead of a jsp? If I put the name of the servlet in the tag, like this,
welcome-file-list
      welcome-file home /welcome-file
/welcome-file-list

then try to hit the site, it comes back 403 directory browsing prohibited. Is there a way to get the web app to automatically forward to the 'home' servlet when the user hits http://www.mysite.com/myapp/ ?