struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "scspieker" <scspie...@voidgamers.com>
Subject Re: Unrelated Action method being called repeatedly - How to debug?
Date Tue, 25 Nov 2008 17:50:25 GMT
A follow-up and conclusion for the this issue:

This issue was related to an appfuse project based on the struts2 archetype.

The web.xml was configured as an error-page directive that was pointing to
a URL that is normally rewritten to an action with parameters being passed
in.

As a processes of updating the theme of the project had included a number
of CSS file references that were no longer valid - therefore a 404 error
was the result of those requests, then being redirected to the action URL
configured in the error-page condition.  Therefore the action was executed
several times due to the missing resource (in this case the CSS files).

To debug this error/configuration, I had created a couple of JSP files
that would be filtered through a decorator.  The other would not be passed
through the decorator using the excludes parameter.

One page (the one through the decorator template) would fire the action,
the other would not.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message