Simple, but I thought there may be an even simpler way. Is there some way I can configure my web.xml or something else such that visiting /myapp/ automatically redirects to my login page?
What if someone has JavaScript disabled? I always use a meta tag with a refresh parameter to redirect visitors. I also put a link to the page I want people to be redirected to in the body of the page just in case the automatic redirect doesn't work.
So there's nothing I can do in the WebLogic container or web.xml to enable auto-redirecting? I'm trying to avoid having to create an index.html page at all. - Dave
You asked for a "simpler way". I gave you the simplest way I know. You can always point a context in web.xml to a servlet and have the servlet do a forward. Not as simple IMHO, but you won't have to create an index.html file.