Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-250 Here is an overview of the issue: --------------------------------------------------------------------- Key: WW-250 Summary: Allow ww2 velocity context to be extended Type: Improvement Status: Assigned Priority: Minor Project: WebWork Components: Misc Versions: 2.1 2.0 2.0-beta1 Assignee: Patrick Lightbody Reporter: Drew McAuliffe Created: Tue, 12 Aug 2003 7:47 PM Updated: Tue, 12 Aug 2003 7:47 PM Description: It is not easy to add items to the default velocity context used to handle a request. In 1.3, the context was created in the velocity servlet, so you could extend the servlet and add your own context items by overriding the create context method. Now, the context is created by a static call to a VelocityManager helper class. The way it's organized, it's not easy to extend the velocity servlet to add custom items to the context. The createContext method is static and is called internally by webwork (not just in the servlet, if I recall). A better solution would be to either refactor it so that the servlet is still creating the context (perhaps with a call to the static method still), and do it in such a way that it would be easy to subclass the servlet class and stick some additional items onto the context. OR, the velocity manager could be an instance variable of the server, the createContext method would be an instance method of that manager (rather than a static call), and the manager class itself could be set by adding a servlet init param. In this case, you'd extend the VelocityManager rather than the servlet, which might be a better solution. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.opensymphony.com/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork