How do you default to get website to go straight to my webapp ?
I have a web application called testapp and in web.xml I have
welcome-file-list
welcome-filejsp/overview.jsp/welcome-file
/welcome-file-list
Going to
http://localhost:8080/testapp
takes the user to
getting rid of 8080: Change your Connector's port attribute in server.xml
(search in the file for 8080).
getting rid of the context name: Change your Context's path attribute to be
. (probably also in server.xml). You will need to remove the existing
default web application, which is that
Hi,
BUT how can I get the user to go straight to
http://localhost:8080/testapp/jsp/overview.jsp
when they enter http://localhost:8080
at the moment it just goes to the tomcat home page index.jsp
You need to make your webapp reside at context path (the empty
string, not null and especially not
Thanks for the quick prompt reply.
Is this normal to do, it feels like I am messing up the standard config
and would the end result be that the url would display as
localhost/overview.jsp
rather than localhost/testapp/overview.jsp
Would it be better to replace ROOT app with a mini app. For
Hi,
Is this normal to do, it feels like I am messing up the standard config
It's normal, common, and fine. It might feel a little intimidating to
someone who's new to Tomcat and/or web application design, but don't
worry about it. That's why you're doing stuff in a test environment
first,
Ok, ive done the section so that I can add an extra application at a
later stage if I need to.
You say in your post index.xml do you mean index.jsp or web.xml
I've created a new index.jsp which provides the user with a hyperlink
to testapp but I dont know if I can make the new page
Hi,
You say in your post index.xml do you mean index.jsp or web.xml
I meant the index page, so index.jsp or index.html would do, but not
web.xml. Sorry for the typo.
Note that the root webapp is precompiled: so if you want to replace
index.jsp you need to clear out the compiled one.
Yoav
Ok FYI, done it added
head
meta http-equiv=refresh content=1;
URL=../testapp/overview/startup.jsp/
/head
to index.jsp
Paul Taylor wrote:
I've created a new index.jsp which provides the user with a hyperlink
to testapp but I dont know if I can make the new page automatically go
to testapp