Charles N. Harvey III wrote: > The one that is really nagging me is: > Is it possible to add values to the default context? I have been working > with > Velocity for some time and like the features that WebWork provides. *.vm is > mapped to the WebWorkVelocityServlet. And there are objects like request > and > response in the context. I would like to be able to add something like user > information to this context. The goal is an entire site with .vm pages so > each > of them can have access to server and user information that I decide upon. > > So do I write a servlet that extends WebWorkVelocityServlet and load it in > my web.xml? Do I add a call in WebWorkVelocityServlet to my servlet? And I > would prefer to create a bean so that if a developer really wants to use a > .jsp > page for something he can access my values as part of the webwork taglib.
I think the easiest way is to create a servlet filter for .vm's that simply add whatever you want to the request. /Rickard -- Rickard �berg _______________________________________________ Webwork-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webwork-user
