I want to
test if user is logged in or logged out and put the logic on the header of my static html page (
tomcat, apache)
I would put .js code like this in my html
document.getElementById("test").innerHTML= '<a href="/login.jsp>Login</a>
And if user is logged in then put link to LOGOUT dynamicaly.
I am using
JSP page to check for logic login/logout:
<c:if test="${!empty user}">
<p><a href="/logout">Logout</a>
How do I call the javascript from this JSP page to display on my html page this logic.
the html pages must stay static and I can't use jsp on them
[ March 14, 2006: Message edited by: Mark Moore ]
[ March 14, 2006: Message edited by: Mark Moore ]
[ March 14, 2006: Message edited by: Mark Moore ]