Well, I figured out my own problem this time. But just in case someone
cares :-), I will post my stupidity.
In my assumption that the only thing my securityFilter below was calling
chain.doFilter(), my assumption was a little off. I ended up with a bad
logic statement that called the chain.doFilter() more than once, hence the
duplicated pages.
So, for anyone who wants to use filters, maybe a return statement after the
chain.doFilter method isnt a bad idea.
Bill Manuel
Sun Certified Web Component Developer
Supply Chain Systems
The Kroger Co.
bill.manuel@xxxxxxxxxx
bill.manuel@kroge
r.com
To
02/10/2005 03:11 users@xxxxxxxxxx
PM cc
Subject
Please respond to [cinjug-users] Sitemesh and servlet
users@xxxxxxxxxx filters on Websphere 5.01
Does anyone have experience using sitemesh on websphere 5.01? I am
currently using sitemesh without a glitch on our Websphere 5.01 servers.
Now I am trying to add an additional serverlet and everything is going
haywire. I have the sitemesh filter mapping covering all pages. My other
filter catches all struts actions. This works perfectly on tomcat 5.0.28.
When I deploy to Websphere, sitemesh decorates my page fine except the page
being decorated is duplicated to the right of the decorated page.
(confused yet?).
Below is a fragment from my web.xml file that shows the filter mapping.
<code>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
..... other stuff
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>securityFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
... more stuff
</code>
Lets assume that the securityFilter only runs the following code in the
doFilter method:
<code>
chain.doFilter(request, response);
</code>
Any help would be greatly appreciated.
Bill Manuel
Sun Certified Web Component Developer
Supply Chain Systems
The Kroger Co.
bill.manuel@xxxxxxxxxx
---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx
--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx
|