/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: JspC/ApacheTomcat9
 * Generated at: 2026-02-01 20:30:39 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp.survey.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.silverpeas.core.web.util.viewgenerator.html.browsebars.BrowseBar;
import org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory;
import org.silverpeas.core.web.util.viewgenerator.html.operationpanes.OperationPane;
import org.silverpeas.core.util.WebEncodeHelper;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;
import java.lang.Math;
import java.net.URLEncoder;
import java.text.ParseException;
import org.silverpeas.core.util.WebEncodeHelper;
import org.silverpeas.core.ResourceReference;
import org.silverpeas.kernel.util.StringUtil;
import org.silverpeas.core.util.MultiSilverpeasBundle;
import org.silverpeas.core.util.URLUtil;
import org.silverpeas.core.admin.user.model.SilverpeasRole;
import org.silverpeas.core.admin.user.model.UserDetail;
import org.silverpeas.components.survey.control.SurveySessionController;
import org.silverpeas.components.survey.SurveyException;
import org.silverpeas.kernel.bundle.ResourceLocator;
import org.silverpeas.kernel.bundle.LocalizationBundle;
import org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory;
import org.silverpeas.core.util.DateUtil;
import org.silverpeas.core.persistence.jdbc.DBUtil;
import org.silverpeas.core.questioncontainer.question.model.Question;
import org.silverpeas.core.questioncontainer.result.model.QuestionResult;
import org.silverpeas.core.questioncontainer.answer.model.Answer;
import org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayPane;
import org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayLine;
import org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayColumn;
import org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayCellText;
import org.silverpeas.core.web.util.viewgenerator.html.board.Board;
import org.silverpeas.core.web.util.viewgenerator.html.browsebars.BrowseBar;
import org.silverpeas.core.web.util.viewgenerator.html.buttonpanes.ButtonPane;
import org.silverpeas.core.web.util.viewgenerator.html.buttons.Button;
import org.silverpeas.core.web.util.viewgenerator.html.iconpanes.IconPane;
import org.silverpeas.core.web.util.viewgenerator.html.icons.Icon;
import org.silverpeas.core.web.util.viewgenerator.html.tabs.TabbedPane;
import org.silverpeas.core.web.util.viewgenerator.html.operationpanes.OperationPane;
import org.silverpeas.core.web.util.viewgenerator.html.window.Window;
import org.silverpeas.core.web.util.viewgenerator.html.frame.Frame;
import org.silverpeas.core.questioncontainer.container.model.Comment;
import org.silverpeas.core.questioncontainer.container.model.QuestionContainerHeader;
import org.silverpeas.core.questioncontainer.container.model.QuestionContainerDetail;
import org.silverpeas.core.util.file.FileRepositoryManager;
import org.silverpeas.core.util.file.FileServerUtils;
import org.silverpeas.core.admin.component.model.ComponentInstLight;
import org.silverpeas.core.util.file.FileUploadUtil;
import org.silverpeas.core.contribution.attachment.model.SimpleDocument;
import org.apache.commons.fileupload.FileItem;

public final class surveyList_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent,
                 org.apache.jasper.runtime.JspSourceImports {

String lockSrc = "";
  String unlockSrc = "";
  String surveyDeleteSrc = "";
  String surveyUpdateSrc = "";
  String addSurveySrc = "";
  String pdcUtilizationSrc = "";
  String linkSrc = "";
  String m_context =
      ResourceLocator.getGeneralSettingBundle().getString("ApplicationURL");

  ArrayPane buildSurveyArrayToAdmin(GraphicElementFactory gef, SurveySessionController surveyScc,
      int view, Collection surveys, MultiSilverpeasBundle resources,
      javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session,
      boolean pollingStationMode) throws ParseException {

    ArrayPane arrayPane =
        gef.getArrayPane("surveysList", "surveyList.jsp?Action=View", request, session);
    arrayPane.setVisibleLineNumber(100);

    if ((view == SurveySessionController.OPENED_SURVEYS_VIEW) ||
        (view == SurveySessionController.CLOSED_SURVEYS_VIEW)) {
      arrayPane.addArrayColumn(resources.getString("GML.name"));
      arrayPane.addArrayColumn(resources.getString("SurveyClosingDate"));

      if (pollingStationMode) {
        arrayPane.addArrayColumn(resources.getString("PollingStationNbVoters"));
      } else if (surveyScc.isParticipationMultipleUsed()) {
        arrayPane.addArrayColumn(resources.getString("SurveyNbParticipations"));
      } else {
        arrayPane.addArrayColumn(resources.getString("SurveyNbVoters"));
      }
      ArrayColumn arrayColumn = arrayPane.addArrayColumn(resources.getString("GML.operation"));
      arrayColumn.setSortable(false);
    } else {
      arrayPane.addArrayColumn(resources.getString("GML.name"));
      arrayPane.addArrayColumn(resources.getString("SurveyOpeningDate"));
      arrayPane.addArrayColumn(resources.getString("SurveyClosingDate"));
      ArrayColumn arrayColumn = arrayPane.addArrayColumn(resources.getString("GML.operation"));
      arrayColumn.setSortable(false);
    }

    if (surveys != null) {
      Iterator i = surveys.iterator();
      while (i.hasNext()) {
        QuestionContainerHeader survey = (QuestionContainerHeader) i.next();
        ArrayLine arrayLine = arrayPane.addArrayLine();
        String link = "";
        if ((view == SurveySessionController.OPENED_SURVEYS_VIEW) ||
            (view == SurveySessionController.CLOSED_SURVEYS_VIEW)) {
          if (survey.getPermalink() != null) {
            link =
                "&nbsp;<a class=\"sp-permalink\" href=\"" + survey.getPermalink() + "\"><img src=\"" + linkSrc +
                "\" border=\"0\" align=\"bottom\" alt=\"" +
                resources.getString("survey.CopySurveyLink") + "\" title=\"" +
                resources.getString("survey.CopySurveyLink") + "\"></a>";
          }

          ArrayCellText arrayCellText0 =
              arrayLine
              .addArrayCellText("<a href=\"javascript:viewSurvey(" +
              survey.getPK().getId() + ")\">" + WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "</a>" + link);
          arrayCellText0.setCompareOn(survey.getTitle());

          if (survey.getEndDate() == null)
            arrayLine.addArrayCellText("&nbsp;");
          else {
            Date date = DateUtil.parse(survey.getEndDate());
            ArrayCellText arrayCellText1 =
                arrayLine.addArrayCellText(resources.getOutputDate(date));
            arrayCellText1.setCompareOn(date);
          }

          ArrayCellText arrayCellText2 =
              arrayLine.addArrayCellText(Integer.toString(survey.getNbVoters()));
          arrayCellText2.setCompareOn(Integer.valueOf(survey.getNbVoters()));

          IconPane iconPane = gef.getIconPane();
          if (view == SurveySessionController.OPENED_SURVEYS_VIEW) {
            Icon closeIcon = iconPane.addIcon();
            closeIcon.setProperties(lockSrc, resources.getString("GML.lock") + " '" +
                WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "'",
                "javascript: closeSurvey('" + survey.getPK().getId() + "');");
          } else {
            Icon openIcon = iconPane.addIcon();
            openIcon.setProperties(unlockSrc, resources.getString("GML.unlock") + " '" +
                WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "'",
                "javascript: openSurvey('" + survey.getPK().getId() + "');");
          }
          // mise à jour
          Icon updateIcon = iconPane.addIcon();
          updateIcon.setProperties(surveyUpdateSrc, resources.getString("GML.modify") + " '" +
              WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "'", "javascript:updateSurvey('" +
              survey.getPK().getId() + "','" +
              WebEncodeHelper.javaStringToHtmlString(WebEncodeHelper.javaStringToJsString(survey.getTitle())) + "','" + survey.getNbVoters() + "')");
          // suppression
          Icon deleteIcon = iconPane.addIcon();
          deleteIcon.setProperties(surveyDeleteSrc, resources.getString("GML.delete") + " '" +
              WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "'", "javaScript:deleteSurvey('" +
              survey.getPK().getId() + "','" +
              WebEncodeHelper.javaStringToHtmlString(WebEncodeHelper.javaStringToJsString(survey.getTitle())) + "')");
          iconPane.setSpacing("30px");
          arrayLine.addArrayCellIconPane(iconPane);
        } else {

          if (survey.getPermalink() != null) {
            link =
                "&nbsp;<a class=\"sp-permalink\" href=\"" + survey.getPermalink() + "\"><img src=\"" + linkSrc +
                "\" border=\"0\" align=\"bottom\" alt=\"" +
                resources.getString("survey.CopySurveyLink") + "\" title=\"" +
                resources.getString("survey.CopySurveyLink") + "\"></a>";
          }

          ArrayCellText arrayCellText =
              arrayLine
              .addArrayCellText("<a href=\"javascript:viewSurvey(" +
              survey.getPK().getId() + ")\">" + WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "</a>" + link);
          arrayCellText.setCompareOn(survey.getTitle());

          if (survey.getBeginDate() == null) {
            arrayLine.addArrayCellText("&nbsp;");
          } else {
            Date date = DateUtil.parse(survey.getBeginDate());
            ArrayCellText arrayCellText0 =
                arrayLine.addArrayCellText(resources.getOutputDate(date));
            arrayCellText0.setCompareOn(date);
          }

          if (survey.getEndDate() == null) {
            arrayLine.addArrayCellText("&nbsp;");
          } else {
            Date date = DateUtil.parse(survey.getEndDate());
            ArrayCellText arrayCellText1 =
                arrayLine.addArrayCellText(resources.getOutputDate(date));
            arrayCellText1.setCompareOn(date);
          }

          IconPane iconPane = gef.getIconPane();
          Icon updateIcon = iconPane.addIcon();
          updateIcon.setProperties(surveyUpdateSrc, resources.getString("GML.modify") + " '" +
              WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "'",
              "surveyUpdate.jsp?Action=UpdateSurveyHeader&SurveyId=" + survey.getPK().getId());
          Icon deleteIcon = iconPane.addIcon();
          deleteIcon.setProperties(surveyDeleteSrc, resources.getString("GML.delete") + " '" +
              WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "'", "javaScript:deleteSurvey('" +
              survey.getPK().getId() + "','" +
              WebEncodeHelper.javaStringToHtmlString(WebEncodeHelper.javaStringToJsString(survey.getTitle())) + "')");
          iconPane.setSpacing("30px");
          arrayLine.addArrayCellIconPane(iconPane);
        }
      }
    }
    return arrayPane;
  }

  ArrayPane buildSurveyArrayToUser(GraphicElementFactory gef, SurveySessionController surveyScc,
      int view, Collection surveys, MultiSilverpeasBundle resources,
      javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session,
      boolean pollingStationMode) throws ParseException {

    ArrayPane arrayPane =
        gef.getArrayPane("surveysList", "surveyList.jsp?Action=View", request, session);
    arrayPane.setVisibleLineNumber(100);

    if ((view == SurveySessionController.OPENED_SURVEYS_VIEW) ||
        (view == SurveySessionController.CLOSED_SURVEYS_VIEW)) {
      arrayPane.addArrayColumn(resources.getString("GML.name"));
      arrayPane.addArrayColumn(resources.getString("SurveyClosingDate"));

      if (pollingStationMode) {
        arrayPane.addArrayColumn(resources.getString("PollingStationNbVoters"));
      } else if (surveyScc.isParticipationMultipleUsed()) {
        arrayPane.addArrayColumn(resources.getString("SurveyNbParticipations"));
      } else {
        arrayPane.addArrayColumn(resources.getString("SurveyNbVoters"));
      }

    } else {
      arrayPane.addArrayColumn(resources.getString("GML.name"));
      arrayPane.addArrayColumn(resources.getString("SurveyOpeningDate"));
      arrayPane.addArrayColumn(resources.getString("SurveyClosingDate"));
    }

    if (surveys != null) {
      Iterator i = surveys.iterator();
      while (i.hasNext()) {
        QuestionContainerHeader survey = (QuestionContainerHeader) i.next();
        ArrayLine arrayLine = arrayPane.addArrayLine();
        String link = "";
        if ((view == SurveySessionController.OPENED_SURVEYS_VIEW) ||
            (view == SurveySessionController.CLOSED_SURVEYS_VIEW)) {

          if (survey.getPermalink() != null)
            link =
                "&nbsp;<a class=\"sp-permalink\" href=\"" + survey.getPermalink() + "\"><img src=\"" + linkSrc +
                "\" border=\"0\" align=\"bottom\" alt=\"" +
                resources.getString("survey.CopySurveyLink") + "\" title=\"" +
                resources.getString("survey.CopySurveyLink") + "\"></a>";

          ArrayCellText arrayCellText0 =
              arrayLine
              .addArrayCellText("<a href=\"javascript:viewSurvey(" +
              survey.getPK().getId() + ")\">" + WebEncodeHelper.javaStringToHtmlString(survey.getTitle()) + "</a>" + link);
          arrayCellText0.setCompareOn(survey.getTitle());

          if (survey.getEndDate() == null)
            arrayLine.addArrayCellText("&nbsp;");
          else {
            Date date = DateUtil.parse(survey.getEndDate());
            ArrayCellText arrayCellText1 =
                arrayLine.addArrayCellText(resources.getOutputDate(date));
            arrayCellText1.setCompareOn(date);
          }

          ArrayCellText arrayCellText2 =
              arrayLine.addArrayCellText(new Integer(survey.getNbVoters()).toString());
          arrayCellText2.setCompareOn(new Integer(survey.getNbVoters()));
        } else {
          arrayLine.addArrayCellLink(WebEncodeHelper.javaStringToHtmlString(survey.getTitle()), "#");

          if (survey.getBeginDate() == null)
            arrayLine.addArrayCellText("&nbsp;");
          else {
            Date date = DateUtil.parse(survey.getBeginDate());
            ArrayCellText arrayCellText0 =
                arrayLine.addArrayCellText(resources.getOutputDate(date));
            arrayCellText0.setCompareOn(date);
          }

          if (survey.getEndDate() == null)
            arrayLine.addArrayCellText("&nbsp;");
          else {
            Date date = DateUtil.parse(survey.getEndDate());
            ArrayCellText arrayCellText1 =
                arrayLine.addArrayCellText(resources.getOutputDate(date));
            arrayCellText1.setCompareOn(date);
          }
        }
      }
    }
    return arrayPane;
  }
  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(6);
    _jspx_dependants.put("jar:file:/home/silverbuild/.m2/repository/org/silverpeas/core/silverpeas-core-web/6.5-build260201/silverpeas-core-web-6.5-build260201.jar!/META-INF/viewGenerator.tld", Long.valueOf(1769974646000L));
    _jspx_dependants.put("file:/home/silverbuild/.m2/repository/org/glassfish/web/javax.servlet.jsp.jstl/1.2.5/javax.servlet.jsp.jstl-1.2.5.jar", Long.valueOf(1531448975000L));
    _jspx_dependants.put("jar:file:/home/silverbuild/.m2/repository/org/glassfish/web/javax.servlet.jsp.jstl/1.2.5/javax.servlet.jsp.jstl-1.2.5.jar!/META-INF/c.tld", Long.valueOf(1531470420000L));
    _jspx_dependants.put("/survey/jsp/checkSurvey.jsp", Long.valueOf(1708603024724L));
    _jspx_dependants.put("jar:file:/home/silverbuild/.m2/repository/org/glassfish/web/javax.servlet.jsp.jstl/1.2.5/javax.servlet.jsp.jstl-1.2.5.jar!/META-INF/fmt.tld", Long.valueOf(1531470420000L));
    _jspx_dependants.put("file:/home/silverbuild/.m2/repository/org/silverpeas/core/silverpeas-core-web/6.5-build260201/silverpeas-core-web-6.5-build260201.jar", Long.valueOf(1769974670204L));
  }

  private static final java.util.Set<java.lang.String> _jspx_imports_packages;

  private static final java.util.Set<java.lang.String> _jspx_imports_classes;

  static {
    _jspx_imports_packages = new java.util.LinkedHashSet<>(4);
    _jspx_imports_packages.add("javax.servlet");
    _jspx_imports_packages.add("javax.servlet.http");
    _jspx_imports_packages.add("javax.servlet.jsp");
    _jspx_imports_classes = new java.util.LinkedHashSet<>(67);
    _jspx_imports_classes.add("org.silverpeas.core.admin.user.model.SilverpeasRole");
    _jspx_imports_classes.add("java.util.Date");
    _jspx_imports_classes.add("org.silverpeas.core.util.MultiSilverpeasBundle");
    _jspx_imports_classes.add("org.silverpeas.core.persistence.jdbc.DBUtil");
    _jspx_imports_classes.add("org.silverpeas.core.util.URLUtil");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.board.Board");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.window.Window");
    _jspx_imports_classes.add("org.silverpeas.core.admin.user.model.UserDetail");
    _jspx_imports_classes.add("org.silverpeas.kernel.bundle.LocalizationBundle");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.tabs.TabbedPane");
    _jspx_imports_classes.add("java.util.Map");
    _jspx_imports_classes.add("java.lang.Math");
    _jspx_imports_classes.add("org.silverpeas.components.survey.control.SurveySessionController");
    _jspx_imports_classes.add("java.text.ParseException");
    _jspx_imports_classes.add("org.silverpeas.core.ResourceReference");
    _jspx_imports_classes.add("org.silverpeas.kernel.util.StringUtil");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.operationpanes.OperationPane");
    _jspx_imports_classes.add("java.util.Collection");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory");
    _jspx_imports_classes.add("org.silverpeas.kernel.bundle.ResourceLocator");
    _jspx_imports_classes.add("org.silverpeas.core.questioncontainer.container.model.QuestionContainerHeader");
    _jspx_imports_classes.add("org.silverpeas.core.admin.component.model.ComponentInstLight");
    _jspx_imports_classes.add("java.util.List");
    _jspx_imports_classes.add("org.silverpeas.core.util.DateUtil");
    _jspx_imports_classes.add("org.silverpeas.core.questioncontainer.result.model.QuestionResult");
    _jspx_imports_classes.add("org.silverpeas.core.questioncontainer.answer.model.Answer");
    _jspx_imports_classes.add("org.silverpeas.core.util.WebEncodeHelper");
    _jspx_imports_classes.add("org.silverpeas.core.questioncontainer.question.model.Question");
    _jspx_imports_classes.add("java.util.HashMap");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.iconpanes.IconPane");
    _jspx_imports_classes.add("org.silverpeas.core.contribution.attachment.model.SimpleDocument");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayLine");
    _jspx_imports_classes.add("java.util.ArrayList");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.buttonpanes.ButtonPane");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayCellText");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayColumn");
    _jspx_imports_classes.add("org.silverpeas.core.questioncontainer.container.model.QuestionContainerDetail");
    _jspx_imports_classes.add("org.silverpeas.core.util.file.FileServerUtils");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.buttons.Button");
    _jspx_imports_classes.add("org.silverpeas.components.survey.SurveyException");
    _jspx_imports_classes.add("java.util.Iterator");
    _jspx_imports_classes.add("org.silverpeas.core.util.file.FileUploadUtil");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.arraypanes.ArrayPane");
    _jspx_imports_classes.add("org.silverpeas.core.util.file.FileRepositoryManager");
    _jspx_imports_classes.add("org.apache.commons.fileupload.FileItem");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.icons.Icon");
    _jspx_imports_classes.add("org.silverpeas.core.questioncontainer.container.model.Comment");
    _jspx_imports_classes.add("java.net.URLEncoder");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.frame.Frame");
    _jspx_imports_classes.add("org.silverpeas.core.web.util.viewgenerator.html.browsebars.BrowseBar");
  }

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public java.util.Set<java.lang.String> getPackageImports() {
    return _jspx_imports_packages;
  }

  public java.util.Set<java.lang.String> getClassImports() {
    return _jspx_imports_classes;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    if (!javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      final java.lang.String _jspx_method = request.getMethod();
      if ("OPTIONS".equals(_jspx_method)) {
        response.setHeader("Allow","GET, HEAD, POST, OPTIONS");
        return;
      }
      if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method)) {
        response.setHeader("Allow","GET, HEAD, POST, OPTIONS");
        response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET, POST or HEAD. Jasper also permits OPTIONS");
        return;
      }
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../../admin/jsp/errorpageMain.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write('\n');
      out.write('\n');
      out.write("\n\n\n\n");
      out.write('\n');
      out.write('\n');
      out.write('\n');

response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires",-1); //prevents caching at the proxy server

      out.write("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

  SurveySessionController surveyScc = (SurveySessionController) request.getAttribute("survey");
  GraphicElementFactory gef = (GraphicElementFactory) session.getAttribute("SessionGraphicElementFactory");
  MultiSilverpeasBundle resources = (MultiSilverpeasBundle)request.getAttribute("resources");

  if (surveyScc == null) {
      // No session controller in the request -> security exception
      String sessionTimeout = ResourceLocator.getGeneralSettingBundle().getString("sessionTimeout");
      getServletConfig().getServletContext().getRequestDispatcher(sessionTimeout).forward(request, response);
      return;
  }

  LocalizationBundle generalMessage = ResourceLocator.getGeneralLocalizationBundle(
      surveyScc.getLanguage());

  String[] browseContext = (String[]) request.getAttribute("browseContext");
  String spaceLabel 		= browseContext[0];
  String componentLabel 	= browseContext[1];
  String spaceId 			= browseContext[2];
  String componentId 		= browseContext[3];

  boolean pollingStationMode = (componentId != null && componentId.startsWith("pollingStation"));

      out.write('\n');
      out.write("\n\n\n\n");
      out.write('\n');
      out.write('\n');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context))
        return;
      out.write('\n');
      out.write('\n');
      if (_jspx_meth_fmt_005fsetLocale_005f0(_jspx_page_context))
        return;
      out.write('\n');
      if (_jspx_meth_view_005fsetBundle_005f0(_jspx_page_context))
        return;
      out.write('\n');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f1(_jspx_page_context))
        return;
      out.write('\n');
      if (_jspx_meth_fmt_005fmessage_005f0(_jspx_page_context))
        return;
      out.write('\n');
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write('\n');
      out.write('\n');
      out.write('\n');
      out.write('\n');

  //Retrieve parameters
  String action = request.getParameter("Action");
  String profile = request.getParameter("Profile");
  String iconsPath = ResourceLocator.getGeneralSettingBundle().getString("ApplicationURL");
  boolean pasteEnabled = (Boolean) request.getAttribute("PasteEnabled");

  //Icons
  lockSrc = iconsPath + "/util/icons/checkoutFile.gif";
  unlockSrc = iconsPath + "/util/icons/checkinFile.gif";
  surveyDeleteSrc = iconsPath + "/util/icons/delete.gif";
  surveyUpdateSrc = iconsPath + "/util/icons/update.gif";
  pdcUtilizationSrc = iconsPath + "/pdcPeas/jsp/icons/pdcPeas_paramPdc.gif";
  linkSrc = iconsPath + "/util/icons/link.gif";
  if (pollingStationMode) {
    addSurveySrc = iconsPath + "/util/icons/create-action/add-polling.png";
  } else {
    addSurveySrc = iconsPath + "/util/icons/create-action/add-survey.png";
  }

  //Update space
  if (action == null) {
    action = "ViewOpenedSurveys";
  }
  if (action.equals("DeleteSurvey")) {
    String surveyId = (String) request.getParameter("SurveyId");
    surveyScc.deleteSurvey(surveyId);
    action = "View";
  } else if (action.equals("CloseSurvey")) {
    String surveyId = (String) request.getParameter("SurveyId");
    surveyScc.closeSurvey(surveyId);
    action = "ViewClosedSurveys";
  } else if (action.equals("OpenSurvey")) {
    String surveyId = (String) request.getParameter("SurveyId");
    surveyScc.openSurvey(surveyId);
    action = "ViewOpenedSurveys";
  }
  if (action.equals("ViewOpenedSurveys")) {
    surveyScc.setViewType(SurveySessionController.OPENED_SURVEYS_VIEW);
    action = "View";
  } else if (action.equals("ViewClosedSurveys")) {
    surveyScc.setViewType(SurveySessionController.CLOSED_SURVEYS_VIEW);
    action = "View";
  } else if (action.equals("ViewInWaitSurveys")) {
    surveyScc.setViewType(SurveySessionController.INWAIT_SURVEYS_VIEW);
    action = "View";
  }

  surveyScc.removeSessionSurveyUnderConstruction();
  surveyScc.removeSessionSurvey();
  surveyScc.removeSessionResponses();

      out.write("\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" id=\"ng-app\" ng-app=\"silverpeas.survey\">\n<head>\n<title></title>\n");
      if (_jspx_meth_view_005flooknfeel_005f0(_jspx_page_context))
        return;
      out.write('\n');
      if (_jspx_meth_view_005fincludePlugin_005f0(_jspx_page_context))
        return;
      out.write("\n<script type=\"text/javascript\">\nfunction viewOpenedSurveys() {\n  document.surveysForm.Action.value = \"ViewOpenedSurveys\";\n  document.surveysForm.submit();\n}\n\nfunction viewClosedSurveys() {\n  document.surveysForm.Action.value = \"ViewClosedSurveys\";\n  document.surveysForm.submit();\n}\n\nfunction viewInWaitSurveys() {\n  document.surveysForm.Action.value = \"ViewInWaitSurveys\";\n  document.surveysForm.submit();\n}\n\nfunction createSurvey() {\n  document.newSurveyForm.Action.value = \"CreateSurvey\";\n  document.newSurveyForm.submit();\n}\nfunction createPollingStation() {\n	  document.newPollingStationForm.Action.value = \"CreatePoll\";\n	  document.newPollingStationForm.submit();\n	}\n\nfunction deleteSurvey(surveyId, name) {\n  var label = \"");
      if (_jspx_meth_view_005fencodeJs_005f0(_jspx_page_context))
        return;
      out.write(" '\" + name + \"' ?\";\n  jQuery.popup.confirm(label, function() {\n    document.surveysForm.Action.value = \"DeleteSurvey\";\n    document.surveysForm.SurveyId.value = surveyId;\n    document.surveysForm.submit();\n  });\n}\n\nfunction updateSurvey(surveyId, name, nbVotes)\n{\n    document.updateForm.action = \"UpdateSurvey\";\n    document.updateForm.Action.value = \"UpdateSurveyHeader\";\n    document.updateForm.SurveyId.value = surveyId;\n    document.updateForm.submit();\n}\n\nfunction openSurvey(surveyId) {\n  document.updateForm.action = \"surveyList.jsp\";\n  document.updateForm.Action.value = \"OpenSurvey\";\n  document.updateForm.SurveyId.value = surveyId;\n  document.updateForm.submit();\n}\n\nfunction closeSurvey(surveyId) {\n  document.updateForm.action = \"surveyList.jsp\";\n  document.updateForm.Action.value = \"CloseSurvey\";\n  document.updateForm.SurveyId.value = surveyId;\n  document.updateForm.submit();\n}\n\nfunction viewSurvey(surveyId) {\n  $.progressMessage();\n  document.updateForm.action = \"surveyDetail.jsp\";\n  document.updateForm.Action.value = \"ViewCurrentQuestions\";\n");
      out.write("  document.updateForm.SurveyId.value = surveyId;\n  document.updateForm.submit();\n}\n\nfunction clipboardPaste() {     \n	  top.IdleFrame.document.location.replace('../..");
      out.print(URLUtil.getURL(URLUtil.CMP_CLIPBOARD, null, null));
      out.write("paste?compR=RSurvey&SpaceFrom=");
      out.print(spaceId);
      out.write("&ComponentFrom=");
      out.print(componentId);
      out.write("&JSPPage=");
      out.print(response.encodeURL(URLEncoder.encode("surveyList", "UTF-8")));
      out.write("&TargetFrame=MyMain&message=REFRESH');\n	}\n\nfunction openSPWindow(fonction, windowName){\n	pdcUtilizationWindow = SP_openWindow(fonction, windowName, '600', '400','scrollbars=yes, resizable, alwaysRaised');\n}\n</script>\n</head>\n<body>\n");

  Window window = gef.getWindow();

  BrowseBar browseBar = window.getBrowseBar();
  browseBar.setDomainName(surveyScc.getSpaceLabel());
  browseBar.setComponentName(surveyScc.getComponentLabel(), "surveyList.jsp");

  if (SilverpeasRole.ADMIN.toString().equals(profile) ||
    SilverpeasRole.PUBLISHER.toString().equals(profile)) {
    OperationPane operationPane = window.getOperationPane();
    if (SilverpeasRole.ADMIN.toString().equals(profile) &&
        surveyScc.isPdcUsed()) {
      operationPane.addOperation(pdcUtilizationSrc, resources.getString("GML.PDCParam"),
          "javascript:openSPWindow('" + m_context + "/RpdcUtilization/jsp/Main?ComponentId=" +
          surveyScc.getComponentId() + "','utilizationPdc1')");
      operationPane.addLine();
    }
    if (pollingStationMode) {
      operationPane.addOperationOfCreation(addSurveySrc, resources.getString("PollingStationNewVote"),
          "javaScript:createPollingStation()");
    } else {
      operationPane.addOperationOfCreation(addSurveySrc, resources.getString("SurveyNewSurvey"),
          "javaScript:createSurvey()");
    }
    if (pasteEnabled) {
      operationPane.addOperation(resources.getIcon("survey.paste"),
          resources.getString("GML.paste"), "javascript:onClick=clipboardPaste()");
    }
  }
  
  out.println(window.printBefore());

      out.write('\n');
      //  view:componentInstanceIntro
      org.silverpeas.core.web.util.viewgenerator.html.instanceintro.ComponentInstanceIntroTag _jspx_th_view_005fcomponentInstanceIntro_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.instanceintro.ComponentInstanceIntroTag();
      _jsp_getInstanceManager().newInstance(_jspx_th_view_005fcomponentInstanceIntro_005f0);
      _jspx_th_view_005fcomponentInstanceIntro_005f0.setPageContext(_jspx_page_context);
      _jspx_th_view_005fcomponentInstanceIntro_005f0.setParent(null);
      // /survey/jsp/surveyList.jsp(459,0) name = componentId type = java.lang.String reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_view_005fcomponentInstanceIntro_005f0.setComponentId(componentId);
      // /survey/jsp/surveyList.jsp(459,0) name = language type = java.lang.String reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_view_005fcomponentInstanceIntro_005f0.setLanguage(resources.getLanguage());
      int _jspx_eval_view_005fcomponentInstanceIntro_005f0 = _jspx_th_view_005fcomponentInstanceIntro_005f0.doStartTag();
      if (_jspx_th_view_005fcomponentInstanceIntro_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return;
      }
      org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005fcomponentInstanceIntro_005f0, _jsp_getInstanceManager());
      out.write('\n');
      if (_jspx_meth_view_005fareaOfOperationOfCreation_005f0(_jspx_page_context))
        return;
      out.write('\n');

  int view = surveyScc.getViewType();
  Collection<QuestionContainerHeader> surveys = surveyScc.getSurveys();

  TabbedPane tabbedPane = gef.getTabbedPane();
  tabbedPane.addTab(resources.getString("SurveyOpened"),
      "javaScript:onClick=viewOpenedSurveys()",
      (view == SurveySessionController.OPENED_SURVEYS_VIEW));
  tabbedPane.addTab(resources.getString("SurveyClosed"),
      "javaScript:onClick=viewClosedSurveys()",
      (view == SurveySessionController.CLOSED_SURVEYS_VIEW));
  tabbedPane.addTab(resources.getString("SurveyInWait"),
      "javaScript:onClick=viewInWaitSurveys()",
      (view == SurveySessionController.INWAIT_SURVEYS_VIEW));
  
  out.println(tabbedPane.print());

      out.write('\n');
      //  view:frame
      org.silverpeas.core.web.util.viewgenerator.html.frame.FrameTag _jspx_th_view_005fframe_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.frame.FrameTag();
      _jsp_getInstanceManager().newInstance(_jspx_th_view_005fframe_005f0);
      _jspx_th_view_005fframe_005f0.setPageContext(_jspx_page_context);
      _jspx_th_view_005fframe_005f0.setParent(null);
      int _jspx_eval_view_005fframe_005f0 = _jspx_th_view_005fframe_005f0.doStartTag();
      if (_jspx_eval_view_005fframe_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"98%\"><tr><td>\n");

  ArrayPane arrayPane = null;
  if (SilverpeasRole.ADMIN.toString().equals(profile) ||
        SilverpeasRole.PUBLISHER.toString().equals(profile)) {
    arrayPane =
        buildSurveyArrayToAdmin(gef, surveyScc, view, surveys, resources, request, session, pollingStationMode);
  } else {
    arrayPane =
        buildSurveyArrayToUser(gef, surveyScc, view, surveys, resources, request, session, pollingStationMode);
  }
  out.println(arrayPane.print());

          out.write("\n</td></tr></table>\n");
          int evalDoAfterBody = _jspx_th_view_005fframe_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_view_005fframe_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return;
      }
      org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005fframe_005f0, _jsp_getInstanceManager());
      out.write('\n');

  out.println(window.printAfter());

      out.write("\n\n<form name=\"surveysForm\" action=\"surveyList.jsp\" method=\"post\">\n  <input type=\"hidden\" name=\"Action\" value=\"\"/> \n  <input type=\"hidden\" name=\"SurveyId\" value=\"\"/>\n</form>\n\n<form name=\"updateForm\" action=\"UpdateSurvey\" method=\"post\">\n  <input type=\"hidden\" name=\"Action\" value=\"\"/> \n  <input type=\"hidden\" name=\"SurveyId\" value=\"\"/>\n</form>\n\n<form name=\"newSurveyForm\" action=\"surveyCreator.jsp\" method=\"post\">\n  <input type=\"hidden\" name=\"Action\" value=\"\"/>\n</form>\n\n<form name=\"newPollingStationForm\" action=\"pollCreator.jsp\" method=\"post\" enctype=\"multipart/form-data\">\n  <input type=\"hidden\" name=\"Action\" value=\"\"/>\n</form>\n\n<script type=\"text/javascript\">\n  /* declare the module myapp and its dependencies (here in the silverpeas module) */\n  var myapp = angular.module('silverpeas.survey', ['silverpeas.services', 'silverpeas.directives']);\n</script>\n\n");
      if (_jspx_meth_view_005fprogressMessage_005f0(_jspx_page_context))
        return;
      out.write("\n\n</body>\n</html>\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fset_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:set
    org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f0 = new org.apache.taglibs.standard.tag.rt.core.SetTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_c_005fset_005f0);
    _jspx_th_c_005fset_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fset_005f0.setParent(null);
    // /survey/jsp/surveyList.jsp(41,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fset_005f0.setVar("ctxPath");
    // /survey/jsp/surveyList.jsp(41,0) name = value type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null
    _jspx_th_c_005fset_005f0.setValue(new org.apache.jasper.el.JspValueExpression("/survey/jsp/surveyList.jsp(41,0) '${pageContext.request.contextPath}'",_jsp_getExpressionFactory().createValueExpression(_jspx_page_context.getELContext(),"${pageContext.request.contextPath}",java.lang.Object.class)).getValue(_jspx_page_context.getELContext()));
    int _jspx_eval_c_005fset_005f0 = _jspx_th_c_005fset_005f0.doStartTag();
    if (_jspx_th_c_005fset_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_c_005fset_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_fmt_005fsetLocale_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  fmt:setLocale
    org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag _jspx_th_fmt_005fsetLocale_005f0 = new org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_fmt_005fsetLocale_005f0);
    _jspx_th_fmt_005fsetLocale_005f0.setPageContext(_jspx_page_context);
    _jspx_th_fmt_005fsetLocale_005f0.setParent(null);
    // /survey/jsp/surveyList.jsp(43,0) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_fmt_005fsetLocale_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${sessionScope['SilverSessionController'].favoriteLanguage}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
    int _jspx_eval_fmt_005fsetLocale_005f0 = _jspx_th_fmt_005fsetLocale_005f0.doStartTag();
    if (_jspx_th_fmt_005fsetLocale_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_fmt_005fsetLocale_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_view_005fsetBundle_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  view:setBundle
    org.silverpeas.core.web.util.viewgenerator.html.SetBundleTag _jspx_th_view_005fsetBundle_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.SetBundleTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_view_005fsetBundle_005f0);
    _jspx_th_view_005fsetBundle_005f0.setPageContext(_jspx_page_context);
    _jspx_th_view_005fsetBundle_005f0.setParent(null);
    // /survey/jsp/surveyList.jsp(44,0) name = bundle type = org.silverpeas.kernel.bundle.SilverpeasBundle reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_view_005fsetBundle_005f0.setBundle((org.silverpeas.kernel.bundle.SilverpeasBundle) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.resources.multilangBundle}", org.silverpeas.kernel.bundle.SilverpeasBundle.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
    int _jspx_eval_view_005fsetBundle_005f0 = _jspx_th_view_005fsetBundle_005f0.doStartTag();
    if (_jspx_th_view_005fsetBundle_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005fsetBundle_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_c_005fset_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:set
    org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_005fset_005f1 = new org.apache.taglibs.standard.tag.rt.core.SetTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_c_005fset_005f1);
    _jspx_th_c_005fset_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fset_005f1.setParent(null);
    // /survey/jsp/surveyList.jsp(46,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fset_005f1.setVar("isPolling");
    // /survey/jsp/surveyList.jsp(46,0) name = value type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null
    _jspx_th_c_005fset_005f1.setValue(new org.apache.jasper.el.JspValueExpression("/survey/jsp/surveyList.jsp(46,0) '${requestScope['PollingStationMode']}'",_jsp_getExpressionFactory().createValueExpression(_jspx_page_context.getELContext(),"${requestScope['PollingStationMode']}",java.lang.Object.class)).getValue(_jspx_page_context.getELContext()));
    int _jspx_eval_c_005fset_005f1 = _jspx_th_c_005fset_005f1.doStartTag();
    if (_jspx_th_c_005fset_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_c_005fset_005f1, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_fmt_005fmessage_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  fmt:message
    org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f0 = new org.apache.taglibs.standard.tag.rt.fmt.MessageTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_fmt_005fmessage_005f0);
    _jspx_th_fmt_005fmessage_005f0.setPageContext(_jspx_page_context);
    _jspx_th_fmt_005fmessage_005f0.setParent(null);
    // /survey/jsp/surveyList.jsp(47,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_fmt_005fmessage_005f0.setVar("surveyConfirmDeleteLabel");
    // /survey/jsp/surveyList.jsp(47,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_fmt_005fmessage_005f0.setKey("ConfirmDeleteSurvey");
    int _jspx_eval_fmt_005fmessage_005f0 = _jspx_th_fmt_005fmessage_005f0.doStartTag();
    if (_jspx_th_fmt_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_fmt_005fmessage_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = new org.apache.taglibs.standard.tag.rt.core.IfTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_c_005fif_005f0);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /survey/jsp/surveyList.jsp(48,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${isPolling}", boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write('\n');
        out.write(' ');
        out.write(' ');
        if (_jspx_meth_fmt_005fmessage_005f1(_jspx_th_c_005fif_005f0, _jspx_page_context))
          return true;
        out.write('\n');
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_c_005fif_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_fmt_005fmessage_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f0, javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  fmt:message
    org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f1 = new org.apache.taglibs.standard.tag.rt.fmt.MessageTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_fmt_005fmessage_005f1);
    _jspx_th_fmt_005fmessage_005f1.setPageContext(_jspx_page_context);
    _jspx_th_fmt_005fmessage_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /survey/jsp/surveyList.jsp(49,2) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_fmt_005fmessage_005f1.setVar("surveyConfirmDeleteLabel");
    // /survey/jsp/surveyList.jsp(49,2) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_fmt_005fmessage_005f1.setKey("ConfirmDeletePollingStation");
    int _jspx_eval_fmt_005fmessage_005f1 = _jspx_th_fmt_005fmessage_005f1.doStartTag();
    if (_jspx_th_fmt_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_fmt_005fmessage_005f1, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_view_005flooknfeel_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  view:looknfeel
    org.silverpeas.core.web.util.viewgenerator.html.LookAndStyleTag _jspx_th_view_005flooknfeel_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.LookAndStyleTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_view_005flooknfeel_005f0);
    _jspx_th_view_005flooknfeel_005f0.setPageContext(_jspx_page_context);
    _jspx_th_view_005flooknfeel_005f0.setParent(null);
    int _jspx_eval_view_005flooknfeel_005f0 = _jspx_th_view_005flooknfeel_005f0.doStartTag();
    if (_jspx_th_view_005flooknfeel_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005flooknfeel_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_view_005fincludePlugin_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  view:includePlugin
    org.silverpeas.core.web.util.viewgenerator.html.IncludeJSPluginTag _jspx_th_view_005fincludePlugin_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.IncludeJSPluginTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_view_005fincludePlugin_005f0);
    try {
      _jspx_th_view_005fincludePlugin_005f0.setJspContext(_jspx_page_context);
      // /survey/jsp/surveyList.jsp(352,0) name = name type = java.lang.String reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_view_005fincludePlugin_005f0.setName("toggle");
      _jspx_th_view_005fincludePlugin_005f0.doTag();
    } finally {
      _jsp_getInstanceManager().destroyInstance(_jspx_th_view_005fincludePlugin_005f0);
    }
    return false;
  }

  private boolean _jspx_meth_view_005fencodeJs_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  view:encodeJs
    org.silverpeas.core.web.util.viewgenerator.html.JavascriptEncoderTag _jspx_th_view_005fencodeJs_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.JavascriptEncoderTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_view_005fencodeJs_005f0);
    _jspx_th_view_005fencodeJs_005f0.setPageContext(_jspx_page_context);
    _jspx_th_view_005fencodeJs_005f0.setParent(null);
    // /survey/jsp/surveyList.jsp(379,15) name = string type = java.lang.String reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_view_005fencodeJs_005f0.setString((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${surveyConfirmDeleteLabel}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
    int _jspx_eval_view_005fencodeJs_005f0 = _jspx_th_view_005fencodeJs_005f0.doStartTag();
    if (_jspx_th_view_005fencodeJs_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005fencodeJs_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_view_005fareaOfOperationOfCreation_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  view:areaOfOperationOfCreation
    org.silverpeas.core.web.util.viewgenerator.html.operationpanes.OperationsOfCreationAreaTag _jspx_th_view_005fareaOfOperationOfCreation_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.operationpanes.OperationsOfCreationAreaTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_view_005fareaOfOperationOfCreation_005f0);
    _jspx_th_view_005fareaOfOperationOfCreation_005f0.setPageContext(_jspx_page_context);
    _jspx_th_view_005fareaOfOperationOfCreation_005f0.setParent(null);
    int _jspx_eval_view_005fareaOfOperationOfCreation_005f0 = _jspx_th_view_005fareaOfOperationOfCreation_005f0.doStartTag();
    if (_jspx_th_view_005fareaOfOperationOfCreation_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005fareaOfOperationOfCreation_005f0, _jsp_getInstanceManager());
    return false;
  }

  private boolean _jspx_meth_view_005fprogressMessage_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  view:progressMessage
    org.silverpeas.core.web.util.viewgenerator.html.progressmessage.ProgressMessageTag _jspx_th_view_005fprogressMessage_005f0 = new org.silverpeas.core.web.util.viewgenerator.html.progressmessage.ProgressMessageTag();
    _jsp_getInstanceManager().newInstance(_jspx_th_view_005fprogressMessage_005f0);
    _jspx_th_view_005fprogressMessage_005f0.setPageContext(_jspx_page_context);
    _jspx_th_view_005fprogressMessage_005f0.setParent(null);
    int _jspx_eval_view_005fprogressMessage_005f0 = _jspx_th_view_005fprogressMessage_005f0.doStartTag();
    if (_jspx_th_view_005fprogressMessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      return true;
    }
    org.apache.jasper.runtime.JspRuntimeLibrary.releaseTag(_jspx_th_view_005fprogressMessage_005f0, _jsp_getInstanceManager());
    return false;
  }
}
