RE: Intercepting Action Filters

2003-07-29 Thread Molitor, Stephen L
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

Intercepting Action Filters

2003-07-28 Thread Molitor, Stephen L
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

Using Validation Framework to control display

2003-06-09 Thread Molitor, Stephen L
> 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

RE: Is it always bad to pass middle tier object to view?

2003-06-09 Thread Molitor, Stephen L
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