Changeset 631:5d962827712b
- Timestamp:
- 10/02/09 16:49:52 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@632
- Message:
-
commented out some code that should be useless now that there is no more servlet forwarding
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r570
|
r631
|
|
| 1 | | // $Id: IndexAction.java,v 1.23 2009-09-30 09:32:00 tgambet Exp $ |
| | 1 | // $Id: IndexAction.java,v 1.24 2009-10-02 16:49:52 tgambet Exp $ |
| 2 | 2 | // Author: Thomas Gambet |
| 3 | 3 | // (c) COPYRIGHT MIT, ERCIM and Keio, 2009. |
| … |
… |
|
| 9 | 9 | import java.util.ArrayList; |
| 10 | 10 | import java.util.Enumeration; |
| 11 | | import java.util.Map; |
| 12 | 11 | |
| 13 | 12 | import javax.servlet.ServletException; |
| … |
… |
|
| 30 | 29 | //private static Log logger = LogFactory.getLog(IndexAction.class); |
| 31 | 30 | |
| 32 | | private VelocityContext velocityContext; |
| | 31 | //private VelocityContext velocityContext; |
| 33 | 32 | |
| 34 | 33 | @Override |
| … |
… |
|
| 51 | 50 | String task; |
| 52 | 51 | String queryString = "./" + getQueryStringWithout(paramPrefix + "lang", req); |
| 53 | | if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { |
| | 52 | /*if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { |
| 54 | 53 | Map<?, ?> reqParams = (Map<?, ?>) req.getAttribute("unicorn_parameters"); |
| 55 | 54 | lang = getLanguage((String) reqParams.get(paramPrefix + "lang"), req, messages); |
| 56 | 55 | task = getTask((String) reqParams.get(paramPrefix + "task"), null); |
| 57 | | } else { |
| | 56 | } else {*/ |
| 58 | 57 | lang = getLanguage((String) req.getParameter(paramPrefix + "lang"), req, messages); |
| 59 | 58 | task = getTask((String) req.getParameter(paramPrefix + "task"), null); |
| 60 | | } |
| | 59 | //} |
| 61 | 60 | |
| 62 | | if (req.getAttribute("unicorn_messages") != null) { |
| | 61 | /*if (req.getAttribute("unicorn_messages") != null) { |
| 63 | 62 | ArrayList<?> ucnMessages = (ArrayList<?>) req.getAttribute("unicorn_messages"); |
| 64 | 63 | for (Object mess : ucnMessages) |
| 65 | 64 | messages.add((Message) mess); |
| 66 | | } |
| | 65 | }*/ |
| 67 | 66 | |
| 68 | | velocityContext = new VelocityContext(Language.getContext(lang)); |
| | 67 | VelocityContext velocityContext = new VelocityContext(Language.getContext(lang)); |
| 69 | 68 | velocityContext.put("queryString", queryString); |
| 70 | 69 | velocityContext.put("messages", messages); |
| … |
… |
|
| 95 | 94 | } |
| 96 | 95 | |
| 97 | | if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { |
| | 96 | /*if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { |
| 98 | 97 | Map<?, ?> reqParams = (Map<?, ?>) req.getAttribute("unicorn_parameters"); |
| 99 | 98 | |
| … |
… |
|
| 118 | 117 | } |
| 119 | 118 | } |
| 120 | | } |
| | 119 | }*/ |
| 121 | 120 | |
| 122 | 121 | PrintWriter writer = resp.getWriter(); |