[Actionframework-users] Default items into the Context
Status: Inactive
Brought to you by:
ptoman
From: David W. <da...@su...> - 2002-06-15 23:19:21
|
At present $SERVLET and $URL are placed in the context I need some others (Action is the first I need and yes I know I can add in my servlet beforeInvoke or handle methods) but it has made me think the following We may want to add extra standard items to the context in future releases, but this risks namespace problems. So instead why don't we put an ActionFrameworkStandardContext object into the context. At the moment this would give us to use in our templates $ActionFramework.Servlet $ActionFramework.Url $ActionFramework.Action $ActionFramework.Version But I can see lots of other good stuff that could go in here, some of it depending on the debug level of ActionFramework so that if debugging it makes extra diagnostics available, giving us a similar feature to phpinfo() which is great when installing/diagnosing php. I don't mind if we use ActionServlet, ActionFramework, AS or AF as the name in the context. What do you think? Dave -- David Warnock, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResults for Fundraising. Development and Hosting of Web Applications and Sites. |