Peter A. Pilgrim wrote: > If the interface was supposed to be environment free what would > this interface be?
Have a look at the abstract WebContext in the Craig's new Chain of Responsibility package.
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-chain/
So, the ActionContext interface *might* start with the WebContext members and then add some convenience methods for retrieving the ActionMapping and ActionForm.
MyActionForm form = (MyActionForm) context.getActionForm();
The idea being that at runtime Struts could be passing around a ServletActionContext or a PortletActionContext, or a generic ActionContext (implemented with HashMaps) that you populated yourself as part of an automatic test.
Another import idea is that, if we wanted, we could also add other other convenience methods to the context without breaking the signature.
-Ted.
-- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]