On 3/5/02 6:12 AM, "Gabriel Sidler" <[EMAIL PROTECTED]> wrote:
> Hi, > based on the discussed API for Velocity for Struts I implemented > the context tools. I have put together a demo application that > incudes several small application examples as well as reference > documentation for the context tools. The demo can be downloaded > from > > http://www.teamup.com/velstruts/velstruts.war [1.3 MB] > > This is a ready-to-deploy war file. Put it into the webapps > directory of your favorite servlet container and restart. Then > point your browser at http://yourserver:port/velstruts/ > > While implementing the API I came across several weaknesses of > the discussed API. I made the changes outlined below. Please review > and yell if you feel something is going the wrong way. Please refer > to the reference documentation in the war files for details. > > The code is now structured such that all Struts Know-How is > kept in a class StrutsUtils. This is a utility class with all > static methods. All context tools use it to access to the > Struts resources. This avoids the spreading of Struts Know How > all over. The methods of StrutsUtils reflect what Velocity context > tools need from Struts. I hope that at some point these > utilities can be integrated into Struts itself. It would have been cuter if you called it 'StrutsKnowHow'. > > I introduced an abstract context tool ServletContextTool. All > Struts context tools extend ServletContextTool. It provides > logging to the logging facility provided by the Servlet API. > I am not fully satisfied yet with this approach. I think we > should forsee logging support already in the ContextTool interface. Struts has no concept of logging???? -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting The question is : What is a Mahnamahna? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
