struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r540819 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
Date Wed, 23 May 2007 02:48:37 GMT
Author: mrdon
Date: Tue May 22 19:48:36 2007
New Revision: 540819

URL: http://svn.apache.org/viewvc?view=rev&rev=540819
Log:
Making idParameterName optional on restful2 mapper
WW-1715

Modified:
    struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java

Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java?view=diff&rev=540819&r1=540818&r2=540819
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
(original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.java
Tue May 22 19:48:36 2007
@@ -240,7 +240,7 @@
 		return idParameterName;
 	}
 
-	@Inject(StrutsConstants.STRUTS_ID_PARAMETER_NAME)
+	@Inject(required=false,value=StrutsConstants.STRUTS_ID_PARAMETER_NAME)
 	public void setIdParameterName(String idParameterName) {
 		this.idParameterName = idParameterName;
 	}



Mime
View raw message