- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 19 Aug 2009 18:55:33 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv25370/src/org/w3c/unicorn/action
Modified Files:
Tag: dev2
IndexAction.java
Log Message:
now adds a task object to the context corresponding to the current task
Index: IndexAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/Attic/IndexAction.java,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -d -r1.1.2.11 -r1.1.2.12
--- IndexAction.java 19 Aug 2009 08:14:12 -0000 1.1.2.11
+++ IndexAction.java 19 Aug 2009 18:55:31 -0000 1.1.2.12
@@ -36,6 +36,14 @@
velocityContext = new VelocityContext(Language.getContext(langParameter));
+ String taskParameter = req.getParameter(Property.get("UNICORN_PARAMETER_PREFIX") + "task");
+ if (taskParameter == null || !Framework.mapOfTask.containsKey(taskParameter))
+ taskParameter = "conformance";
+
+ velocityContext.put("current_task", Framework.mapOfTask.get(taskParameter));
+ //velocityContext.put("current_task", req.get);
+
+
Framework.getTemplate("index").merge(velocityContext, resp.getWriter());
resp.getWriter().close();
Received on Wednesday, 19 August 2009 18:55:43 UTC