F
F. H.
Around a year ago I remember it being absolutely impossible to
configure tomcat to have something like:
http://www.example.com/
map to a servlet; you have to have http://www.example.com/index.jsp
instead.
Anyways, if I just want to have http://www.example.com/index be a
servlet what do I put in web.xml? It seems like servlet names like
/index won't work in the welcome-file-list.
As a last resort I could put index.html in the welcome-file-list and
have index.html redirect to the /index servlet, but this means
everytime a user loads http://www.example.com/ they are first
redirected to /index.html and then redirected to /index. It's really
stupid that two redirects should be necessary because of Tomcat's lack
of configurability.
Ugh, I hate Tomcat and don't know why such a simple thing that's so
easy with Apache+Perl is so hard with a supposedly "superior
technology." Why can't I just have http://www.example.com/ be a
servlet?
Anyways, I'll settle for http://www.example.com/index if someone can
show me how to configure Tomcat to serve /index when
http://www.example.com/ is requested.
Also, has the situation improved with Tomcat 5?
configure tomcat to have something like:
http://www.example.com/
map to a servlet; you have to have http://www.example.com/index.jsp
instead.
Anyways, if I just want to have http://www.example.com/index be a
servlet what do I put in web.xml? It seems like servlet names like
/index won't work in the welcome-file-list.
As a last resort I could put index.html in the welcome-file-list and
have index.html redirect to the /index servlet, but this means
everytime a user loads http://www.example.com/ they are first
redirected to /index.html and then redirected to /index. It's really
stupid that two redirects should be necessary because of Tomcat's lack
of configurability.
Ugh, I hate Tomcat and don't know why such a simple thing that's so
easy with Apache+Perl is so hard with a supposedly "superior
technology." Why can't I just have http://www.example.com/ be a
servlet?
Anyways, I'll settle for http://www.example.com/index if someone can
show me how to configure Tomcat to serve /index when
http://www.example.com/ is requested.
Also, has the situation improved with Tomcat 5?