Hallo folks. I'd like to know whether is possible to constrain a welcome file. More precisely: I constrained the welcome file ( index.jsp ). When type in the URL http:\\myHost:myPort\Webapp\ the resource isn't constrained, when I type the URL http:\\myHost:myPort\Webapp\index.jsp the resource is constrained. I need to constrain the index.jsp and maintain it as welcome file. Can you help me ?
by 'constrained' I assume you men you want users to log in before accessing this page? You may want to make the welcome page to be not restricted, and have it redirect to a non-welcome page that is.
eg if the 'welcome' page is welcome.jsp but the actual secured page is index.jsp, and index.jsp is not in the weclome list, you just have welcome.jsp redirect to the index.jsp page and it doesn't matter how they refer to the welcome page.
Joined: Nov 29, 2005
Thanks, but is it possibile avoiding the redirect ? Only using declarative logic ( web.xml ) ? I 'm working with a already-done web app so I'd like to modify the least possible.