webwork/src/main/webwork/action/factory ParametersActionFactoryProxy.java,1.9,1.10
[email protected] Thu, 13 Nov 2003 13:44:43 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/action/factory
In directory sc8-pr-cvs1:/tmp/cvs-serv25177
Modified Files:
ParametersActionFactoryProxy.java
Log Message:
Check for NoParameters interface
Index: ParametersActionFactoryProxy.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/action/factory/ParametersActionFactoryProxy.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ParametersActionFactoryProxy.java 17 Jun 2003 14:45:41 -0000 1.9
+++ ParametersActionFactoryProxy.java 13 Nov 2003 21:44:41 -0000 1.10
@@ -44,7 +44,10 @@
{
// Get action from factory
Action action = getNextFactory().getActionImpl(aName);
-
+ // Check if the NoParameters interface is implemented. In that
+ // case no parameters should be set so we just return the action
+ if (action instanceof NoParameters)
+ return action;
// Set parameters
try {
BeanUtil.setProperties(ActionContext.getParameters(), action);
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/