posted 7 years ago
Hi, posted this in another forum and am posting it here now. I am trying out form based authentication and data source realm. The application starts off with a page(logintest.jsp, outside the admin folder) that asks the user to click on a link to view the admin applications, the login page(login.jsp, located inside the admin folder.) appears after the link is clicked. The problem I have is that after typing in the correct username and password,I am expecting the index.jsp page from the "Admin" folder to be displayed, but instead I am seeing a directory listing for the admin foler. I am not sure what is wrong. The following are the contents from my context.xml and web.xml and also the app directory.
web.xml
-------
conetxt.xml
-----------
WebApp directory
----------------
<pre>
WebContent
- admin(folder)
index.jsp
login_error.jsp
login.jsp
- WEB-INF
web.xml
lgintest.jsp
</pre>
Hope someone can advise, thanks.