Changeset 631:5d962827712b

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • src/org/w3c/unicorn/action/IndexAction.java

    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 $ 
    22// Author: Thomas Gambet 
    33// (c) COPYRIGHT MIT, ERCIM and Keio, 2009. 
     
    99import java.util.ArrayList; 
    1010import java.util.Enumeration; 
    11 import java.util.Map; 
    1211 
    1312import javax.servlet.ServletException; 
     
    3029        //private static Log logger = LogFactory.getLog(IndexAction.class); 
    3130         
    32         private VelocityContext velocityContext; 
     31        //private VelocityContext velocityContext; 
    3332         
    3433        @Override 
     
    5150                String task; 
    5251                String queryString = "./" + getQueryStringWithout(paramPrefix + "lang", req); 
    53                 if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { 
     52                /*if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { 
    5453                        Map<?, ?> reqParams = (Map<?, ?>) req.getAttribute("unicorn_parameters"); 
    5554                        lang = getLanguage((String) reqParams.get(paramPrefix + "lang"), req, messages); 
    5655                        task = getTask((String) reqParams.get(paramPrefix + "task"), null); 
    57                 } else { 
     56                } else {*/ 
    5857                        lang = getLanguage((String) req.getParameter(paramPrefix + "lang"), req, messages); 
    5958                        task = getTask((String) req.getParameter(paramPrefix + "task"), null); 
    60                 } 
     59                //} 
    6160                 
    62                 if (req.getAttribute("unicorn_messages") != null) { 
     61                /*if (req.getAttribute("unicorn_messages") != null) { 
    6362                        ArrayList<?> ucnMessages = (ArrayList<?>) req.getAttribute("unicorn_messages"); 
    6463                        for (Object mess : ucnMessages) 
    6564                                messages.add((Message) mess); 
    66                 } 
     65                }*/ 
    6766                 
    68                 velocityContext = new VelocityContext(Language.getContext(lang)); 
     67                VelocityContext velocityContext = new VelocityContext(Language.getContext(lang)); 
    6968                velocityContext.put("queryString", queryString); 
    7069                velocityContext.put("messages", messages); 
     
    9594                } 
    9695                 
    97                 if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { 
     96                /*if (req.getAttribute("unicorn_parameters") instanceof Map<?, ?>) { 
    9897                        Map<?, ?> reqParams = (Map<?, ?>) req.getAttribute("unicorn_parameters"); 
    9998                         
     
    118117                                } 
    119118                        } 
    120                 } 
     119                }*/ 
    121120                 
    122121                PrintWriter writer = resp.getWriter();