Hi,

I was wondering, following the Struts framework, Model 2, etc..since
servlets merely map the JSP extension to their own incarnation of
JSPServlet, is it possible to map all JSP pages to my ControllerServlet (or
for that matter, the controller servlet of the Struts framework), so that I
could place security abilities and other things (making sure pages they try
to access are allowed..if they are logged in or not, etc)? If so, is there a
lot involed in such a task? I know I could just remap the servers JSP
mapping, but I am wondering if it makes more sense to just comment out their
mapping, and put the JSP mapping into my web.xml for my application..or can
I leave the servers there, but map it anyways..and my web.xml mapping would
override the servers?

Furthermore, what I would really like to do, since my entire site is solid
JSP now (other than a few static html pages) because I include the same
header and footer on every page (using JSP include directives), I merely
want all JSP pages to go on to the JSP Servlet..but I just want one central
location for security reasons..so any JSP request allows my one servlet to
make sure the page being accessed is allowed by the person accessing it.

Thanks for any info.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to