You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/01/04 03:20:50 UTC
DO NOT REPLY [Bug 32929] New: -
The Tiles insertTag causes servlet filters to be invoked
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32929>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32929
Summary: The Tiles insertTag causes servlet filters to be invoked
Product: Struts
Version: 1.2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Tiles framework
AssignedTo: dev@struts.apache.org
ReportedBy: ap_kelly@hotmail.com
Hi,
I have a very basic Tiles application, a couple of JSPs and a Servlet, along
with some Filters. I've noticed that after each tiles:insertTag is called I get
a hit on my servlet filters. My filters are configured to respond to *.jsp pages
I've added some debug to my doFilter() method and it seems that my filter is
being called for each tiles:insertTag statement in my layout.jsp
Below is some debug statements that I've logged, you'll notice calls
to my filters after each tiles:insertTag statement.
12:40:44 DEBUG [util.ModuleUtils] - Get module name for path /logon.do
12:40:44 DEBUG [util.ModuleUtils] - Module name found: default
12:40:44 DEBUG [action.RequestProcessor] - Processing a 'GET' for path '/logon'
12:40:44 DEBUG [action.RequestProcessor] - Setting user locale 'en_US'
12:40:44 DEBUG [action.RequestProcessor] - Looking for Action instance for class
org.apache.struts.actions.ForwardAction
12:40:44 DEBUG [action.RequestProcessor] - Returning existing Action instance
12:40:44 DEBUG [tiles.TilesRequestProcessor] -
processForwardConfig(.setpoc.logon, true)
12:40:44 DEBUG [tiles.TilesRequestProcessor] - uri=/layout/layout.jsp
doInclude=false
12:40:44 DEBUG [servlet.TraceRequestFilter] - doFilter enter : 1104802844976
12:40:44 DEBUG [tiles.InsertTag] - insert page='/layout/header.jsp'.
12:40:44 DEBUG [servlet.TraceRequestFilter] - doFilter enter : 1104802844996
12:40:45 DEBUG [tiles.InsertTag] - insert page='/layout/navigation.jsp'.
12:40:45 DEBUG [servlet.TraceRequestFilter] - doFilter enter : 1104802845046
12:40:45 DEBUG [tiles.InsertTag] - insert page='/layout/messages.jsp'.
12:40:45 DEBUG [servlet.TraceRequestFilter] - doFilter enter : 1104802845056
12:40:45 DEBUG [tiles.InsertTag] - insert page='/logon.jsp'.
12:40:45 DEBUG [servlet.TraceRequestFilter] - doFilter enter : 1104802845066
12:40:45 DEBUG [tiles.InsertTag] - insert page='/layout/footer.jsp'.
12:40:45 DEBUG [servlet.TraceRequestFilter] - doFilter enter : 1104802845136
This behaviour isn't what I expected (I would have thought that the tag would
have used an include rather than a forward, therefore not calling my filter) and
I can't find any documentation to say that this is the way things should be,
therefore I can only assume that it may potentially be a bug.
I've checked several mailing lists and already searched bugzilla for duplicate
bugs but I've found nothing similar.
Thanks and regards,
Andy
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org