I am a J2EE consultant by profession. Like in every other profession, You learn new things every day. The project I consult for, is architected viewing far ahead technologically. Although Many in my own project disagree that the project is in pristine shape (code wise). But to me, All it needs is a little tidying up (complement that superior design). However, at the core, This one is a masterpiece. And being an aspiring architect, I have had yet another those "Best so Far" projects. Here are somethings I haven't done in the past but did in this project.
Filters:
Recently I have had close encounters with Filters. the Advanced version of them. We have Sitemesh, OpenSessionInView, Acegi all filtering the requests. Acegi Filter itself calls its own (Configurable) Filter Chain.
The most commonly use of a filter is on a url-pattern
- However, It can also be used on servlets using
There is also a dispatcher (
Scriptlets:
I have not seen this before - but apparently, You can disable Scriplets on certain pages completely.
You can achieve that like this
there will more coming in this series. I have to write a lot about Acegi. with time.. ;) check back later.
Leave comments in Guestbook
Filters:
Recently I have had close encounters with Filters. the Advanced version of them. We have Sitemesh, OpenSessionInView, Acegi all filtering the requests. Acegi Filter itself calls its own (Configurable) Filter Chain.
The most commonly use of a filter is on a url-pattern
<url-pattern>PATTERN_HERE</url-pattern>
- However, It can also be used on servlets using
<servlet-name>directgroup</servlet-name>
You can also combine them to get both url mapping and also servlet.There is also a dispatcher (
<dispatcher>VAL_HERE</dispatcher>
) which can further filter based if it was REQUEST, FORWARD etc - More Doc here Scriptlets:
I have not seen this before - but apparently, You can disable Scriplets on certain pages completely.
<% %>
doesn't work in those pages You can achieve that like this
<jsp-property-group>
<url-pattern>/WEB-INF/*</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
there will more coming in this series. I have to write a lot about Acegi. with time.. ;) check back later.
Leave comments in Guestbook