Hello i am still a bit new to these technologies so please bear with me. I have a simple jsp page which i have restricted access to in my web-xml file. I am using form based security so when the user tries to access this resource a login page is displayed. If the user has the rights to enter i.e. their details match the tomcat-users file then they are allowed access to the resource. Is there a way to pass these details to my jsp page so i have access to the current user
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Log In</TITLE>
<LINK REL=STYLESHEET
HREF="../company-styles.css"
TYPE="text/css">
</HEAD>
<BODY>
<%@ taglib uri="project-taglib.tld" prefix="project" %>
<project:heading bgColor="BLACK" color="WHITE">
NCC Web studios
</project:heading>
<P>
<H3>Sorry, you must log in before accessing this resource.</H3>
<FORM ACTION="j_security_check" METHOD="POST">
<TABLE>
<TR><TD>User name: <INPUT TYPE="TEXT" NAME="j_username">
<TR><TD>Password: <INPUT TYPE="PASSWORD" NAME="j_password">
<TR><TH><INPUT TYPE="SUBMIT" VALUE="Log In">
</TABLE>
<br><br><br><br><br><br><br><br><br><br><br>
<project:date />
</FORM>
</BODY>
</HTML>
many thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Log In</TITLE>
<LINK REL=STYLESHEET
HREF="../company-styles.css"
TYPE="text/css">
</HEAD>
<BODY>
<%@ taglib uri="project-taglib.tld" prefix="project" %>
<project:heading bgColor="BLACK" color="WHITE">
NCC Web studios
</project:heading>
<P>
<H3>Sorry, you must log in before accessing this resource.</H3>
<FORM ACTION="j_security_check" METHOD="POST">
<TABLE>
<TR><TD>User name: <INPUT TYPE="TEXT" NAME="j_username">
<TR><TD>Password: <INPUT TYPE="PASSWORD" NAME="j_password">
<TR><TH><INPUT TYPE="SUBMIT" VALUE="Log In">
</TABLE>
<br><br><br><br><br><br><br><br><br><br><br>
<project:date />
</FORM>
</BODY>
</HTML>
many thanks