I'm new to JSP, and would like to offer users an option to logout from their current session.
I was wondering if it is possible to call a method which contains the logging-out logic, from a link tag (i.e. <a href=...>
).
Something like this:
out.println("You are already logged in. Click <a href="methodName()">here</a> to go to the login page");
Is this possible?