struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Struts Wiki] Trivial Update of "HDIV" by newacct
Date Sat, 20 Feb 2010 22:50:11 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.

The "HDIV" page has been changed by newacct.
http://wiki.apache.org/struts/HDIV?action=diff&rev1=10&rev2=11

--------------------------------------------------

  	Map extraParams = paramProcessing.getExtraFormParameters();
  
  	if (extraParams != null) {
- 		String key = null;
- 		for (Iterator iter = extraParams.keySet().iterator(); iter.hasNext();) {
+ 		for (Iterator iter = extraParams.entrySet().iterator(); iter.hasNext();) {
- 			key = (String) iter.next();
+ 			Map.Entry entry = (Map.Entry) iter.next();
+ 			String key = (String) entry.getKey();
+ 			String val = (String) entry.getValue();
- TagUtils.getInstance().write(pageContext, renderField(key, (String) extraParams.get(key)));
+ 			TagUtils.getInstance().write(pageContext, renderField(key, val));
  		}
  	}
  }

Mime
View raw message