2006/unicorn/src/org/w3c/unicorn/action IndexAction.java,1.18,1.19

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv4928/src/org/w3c/unicorn/action

Modified Files:
	IndexAction.java 
Log Message:
can display several error messages instead of just one

Index: IndexAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/IndexAction.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- IndexAction.java	17 Sep 2009 17:29:37 -0000	1.18
+++ IndexAction.java	21 Sep 2009 15:46:50 -0000	1.19
@@ -59,8 +59,11 @@
 			
 		}
 		
-		if (req.getAttribute("unicorn_message") != null)
-			messages.add((Message) req.getAttribute("unicorn_message"));
+		if (req.getAttribute("unicorn_messages") != null) {
+			ArrayList<?> ucnMessages = (ArrayList<?>) req.getAttribute("unicorn_messages");
+			for (Object mess : ucnMessages)
+				messages.add((Message) mess);
+		}
 		
 		velocityContext = new VelocityContext(Language.getContext(lang));
 		velocityContext.put("queryString", queryString);

Received on Monday, 21 September 2009 15:47:07 UTC