Re: [Actionframework-users] Default items into the Context
Status: Inactive
Brought to you by:
ptoman
|
From: Petr T. <Pet...@pi...> - 2002-07-07 15:26:38
|
> > 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
I've got a question regarding $ActionFramework.Action:
I want to ask everybody's opinion on changing ActionServlet method
signatures for 0.94 or 0.95, that have arguments 'form' and 'action', to
'action' only.
Example:
Object afterInvoke(Object retValue, Context context,
String form,
String action,
Object[] convertedParams) throws Exception
would change to:
Object afterInvoke(Object retValue, Context context,
String action,
Object[] convertedParams) throws Exception
The original methods would become deprecated, but remained functional -
they would only call the new ones - contactenating 'form' and 'action'
with dot ('.').
Example:
Object afterInvoke(Object retValue, Context context,
String form,
String action,
Object[] convertedParams) throws Exception {
return afterInvoke(retValue, context,
form + "." + action,
convertedParams);
}
-Petr
--
>>> http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 <<<
|