Hi -

I want to have a call "enforceLogin()" on every page... to enforce the
fact that the user is logged in. What is the cleanest way to do that?

At first I thought of doing:

<%@ include file="components/access.jsp" %>
enforceLogin();

in each page... and then access.jsp would have:

<%! public void enforceLogin() { ... } %>

However the enforceLogin() method needs access to the request object....
so that doesn't seem like it will work.

Any help would be greatly appreciated.

Dion

--
         \\|//
         (o o)
+----oOOo-(_)-oOOo--------------------------------------------------+
|   [EMAIL PROTECTED]   | "The English certainly and fiercely pride   |
| www.almaer.com/dion |  themselves in never praising themselves."  |
+-------------------------------------------------------------------+

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to