Yes, there's a lot of overlap between servlet filters and 'action filters'. But with
a servlet filter you get control after Struts has already performed the action
forward. With an 'action filter' you'd get control before the forward is performed,
and you would have convenient access to the ma
Has any one implemented pluggable decorators for Actions? By that I mean things that
would wrap around an action and add extra behavior. We've done this using the
Template Method approach, where derived action classes can overrided beforeExecute,
afterExecute hooks in a base action. One could
> Has anyone tried using the validation framework to control the display of
> the JSP? For example, if I mark a field as required in validation.xml,
> maybe I could write my own form tag that puts a red asterisk next to the
> edit box. It might also be nice to configure things like
> enabled/disa
Actually, passing middle tier object to the view does not violate the best
practice that says "do not let your
lower tiers depend on the upper ones." That's a good best practice, but
passing a middle tier or model object the view doesn't violate that. It
introduces a dependency from the from the
4 matches
Mail list logo