package org.apache.jsp.common; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.commons.lang.StringUtils; import com.edeal.frontline.controller.actions.ListAction; import org.apache.commons.lang.StringUtils; import com.edeal.frontline.navigation.EdealBigTabsNavigation; import com.edeal.frontline.navigation.EdealBigTabsNavigation.BigTabsParams; import java.util.Vector; import com.edeal.frontline.navigation.WebUtils; import com.edeal.frontline.Utils; import com.edeal.frontline.navigation.FlRequest; import com.edeal.frontline.ListBean; import java.util.HashMap; public final class tabs_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List _jspx_dependants; static { _jspx_dependants = new java.util.ArrayList(1); _jspx_dependants.add("/WEB-INF/taglib.tld"); } private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fjs_005fcode_005falt_005fnobody; private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody; private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.AnnotationProcessor _jsp_annotationprocessor; public Object getDependants() { return _jspx_dependants; } public void _jspInit() { _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fjs_005fcode_005falt_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName()); } public void _jspDestroy() { _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fjs_005fcode_005falt_005fnobody.release(); _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.release(); _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.release(); } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, 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'); /****************************************************************************** * Copyright (c) 2000-2005 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); final org.apache.commons.logging.Log loggerTabs = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequestTabs = new FlRequest(request); EdealBigTabsNavigation ebtnTabs = new EdealBigTabsNavigation(flRequestTabs); // The grid variables are duplicated here with different names because // this file can be @included by list.jsp and list_criteria.jsp // List code String lcTabs = ebtnTabs.getListCode(); //Search criteria String scTabs = ebtnTabs.getBigTabsParameterValue(BigTabsParams.SearchCriteria); //Object uri String ouTabs = StringUtils.defaultString(ebtnTabs.getBigTabsParameterValue(BigTabsParams.ObjectURI)); //The current selected tab String selectedTabTabs = ebtnTabs.getBigTabsParameterValue(BigTabsParams.SelectedTab); //Criteria tab name String critTitleTabs = ebtnTabs.getBigTabsParameterValue(BigTabsParams.CriteriaListTitle); if (critTitleTabs == null) { critTitleTabs = Utils.getMessage(session, "A2009", false, true, "Nouvelle recherche"); } // Criteria uri String cuTabs = ebtnTabs.getBigTabsParameterValue(BigTabsParams.CriteriaListURI); // Name of the current object String objTitleTabs = ebtnTabs.getBigTabsParameterValue(BigTabsParams.ObjectTitle); // id String idTabs = flRequestTabs.getRequestParameterOrAttribute("id"); // $$idx String idx = flRequestTabs.getRequestParameterOrAttribute(lcTabs + "_$$idx"); if (idx != null && !"".equals(idx)) { idx = lcTabs + "_$$idx=" + idx; } else { idx = null; } idx = flRequestTabs.getSearchCriteria("$$idx", lcTabs, false); // $$OrderBy String orderby = (String)flRequestTabs.getSearchCriteria("$$OrderBy",lcTabs,false); if (orderby != null && !"".equals(orderby)) { orderby = lcTabs + "_$$OrderBy=" + orderby; } else { orderby = null; } // $$ReverseOrderBy String reverseorderby = flRequestTabs.getSearchCriteria("$$ReverseOrderBy",lcTabs,false); if (reverseorderby != null && !"".equals(reverseorderby)) { reverseorderby = lcTabs + "_$$ReverseOrderBy=" + reverseorderby; } else { reverseorderby = null; } // "ignoreCriteria" is used for historique reasons, but it's really the critList tab boolean ignoreCritList = ebtnTabs.isIgnoreCritList(); boolean isCritListTabSelected = ebtnTabs.isCritListTabSelected(); boolean isObjectTabSelected = ebtnTabs.isObjectTabSelected(); boolean displayCritList = ebtnTabs.isDisplayCritList(); boolean displayObject = ebtnTabs.isDisplayObject(); if (!isCritListTabSelected && !isObjectTabSelected) { if (displayCritList && !displayObject) { isCritListTabSelected = true; } else if (!displayCritList && displayObject) { isObjectTabSelected = true; } else { isCritListTabSelected = true; } } int nbTabs = ebtnTabs.numberOfDisplayedTabs(); boolean isFirstDisplayed = false; int displayedTabs = 0; boolean sharpCorner = "sharp".equalsIgnoreCase(flRequestTabs.getRequestParameterOrAttribute("corner")); String objListToken = ebtnTabs.getBigTabsParameterValue(BigTabsParams.ObjectListToken); HashMap> hm = objListToken == null ? null : (HashMap>)session.getAttribute(ListAction.OBJECT_LIST_ATTR); Vector iterIds = hm == null ? null : hm.get(objListToken); ebtnTabs.setBigTabsParameterValue(BigTabsParams.SelectedTab, "0"); String tab1URL = StringUtils.isNotEmpty(cuTabs) ? cuTabs : "/list_criteria.fl"; tab1URL = flRequestTabs.computeURL(tab1URL, false, false, true); int tmpIndex = tab1URL.indexOf("?"); if (tmpIndex < 0) { tab1URL += "?"; }else if (tmpIndex 0 && StringUtils.isNotEmpty(idTabs) && ebtnTabs.isObjectTabSelected()) { int idIdx = iterIds.indexOf(idTabs); String strippedUrl = ouTabs.indexOf('?') >= 0 ? ouTabs.substring(0, ouTabs.indexOf('?')) : ouTabs; if (idIdx > 0) { prevID = iterIds.get(idIdx - 1); prevUrl = strippedUrl + "?id=" + prevID; prevUrl = flRequestTabs.computeURL(prevUrl, false, false, true); prevUrl += "&" + ebtnTabs.getBigTabsParameterString(); } if (idIdx < (iterIds.size() - 1) && idIdx != -1) { nextID = iterIds.get(idIdx + 1); nextUrl = strippedUrl + "?id=" + nextID; nextUrl = flRequestTabs.computeURL(nextUrl, false, false, true); nextUrl += "&" + ebtnTabs.getBigTabsParameterString(); } } out.write("\n"); out.write("\t\n"); out.write("\n"); out.write("\t"); if (displayCritList) { isFirstDisplayed = true; displayedTabs++; String bgClass = isCritListTabSelected ? "actif-pos-1" : "inactif-pos-1"; out.write("\n"); out.write("\t\t\n"); out.write("\t\t"); if (displayedTabs == nbTabs) { out.write("\n"); out.write("\t\t"); } else { out.write("\n"); out.write("\t\t\n"); out.write("\t\t\t"); } } if (displayObject) { displayedTabs++; if (!isFirstDisplayed) { isFirstDisplayed = true; out.write("\n"); out.write("\t\t"); } out.write("\n"); out.write("\t\t\n"); out.write("\t\t\n"); out.write("\t\t\n"); out.write("\t\n"); out.write("
 '); if (!isCritListTabSelected) { out.write('<'); out.write('a'); out.write('>'); out.print( critTitleTabs ); out.write(""); } else { out.print( critTitleTabs ); } out.write("  "); if (isObjectTabSelected) { out.write(""); } else { out.write(""); } out.write("\n"); out.write("\t\t\t"); if (nbTabs > 1) { out.write("\n"); out.write("\t\t\t\t"); if (StringUtils.isNotEmpty(prevUrl)) { out.write("\n"); out.write("\t\t\t\t\t\n"); out.write("\t\t\t\t"); } out.write("\n"); out.write("\t\t\t"); } if (!isObjectTabSelected) { out.write('<'); out.write('a'); out.write('>'); out.print( objTitleTabs ); out.write(""); } else { out.print( objTitleTabs ); } if (nbTabs > 1) { out.write("\n"); out.write("\t\t\t"); if (StringUtils.isNotEmpty(nextUrl)) { out.write("\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t"); } } out.write("\t\t\n"); out.write("\t\t\n"); out.write("\t\t"); } out.write("\n"); out.write("\t\t\n"); out.write("\t\t\t\n"); out.write("\t\t 
\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else log(t.getMessage(), t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } private boolean _jspx_meth_fl_005fgetMessage_005f0(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:getMessage com.edeal.frontline.GetMessageTag _jspx_th_fl_005fgetMessage_005f0 = (com.edeal.frontline.GetMessageTag) _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fjs_005fcode_005falt_005fnobody.get(com.edeal.frontline.GetMessageTag.class); _jspx_th_fl_005fgetMessage_005f0.setPageContext(_jspx_page_context); _jspx_th_fl_005fgetMessage_005f0.setParent(null); // /common/tabs.jsp(263,24) name = code type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f0.setCode("M6153"); // /common/tabs.jsp(263,24) name = alt type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f0.setAlt("Voulez vous sauver vos changements?"); // /common/tabs.jsp(263,24) name = js type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f0.setJs("true"); int _jspx_eval_fl_005fgetMessage_005f0 = _jspx_th_fl_005fgetMessage_005f0.doStartTag(); if (_jspx_th_fl_005fgetMessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fjs_005fcode_005falt_005fnobody.reuse(_jspx_th_fl_005fgetMessage_005f0); return true; } _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fjs_005fcode_005falt_005fnobody.reuse(_jspx_th_fl_005fgetMessage_005f0); return false; } private boolean _jspx_meth_fl_005fwebapp_005f0(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:webapp com.edeal.frontline.WebappTag _jspx_th_fl_005fwebapp_005f0 = (com.edeal.frontline.WebappTag) _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.get(com.edeal.frontline.WebappTag.class); _jspx_th_fl_005fwebapp_005f0.setPageContext(_jspx_page_context); _jspx_th_fl_005fwebapp_005f0.setParent(null); int _jspx_eval_fl_005fwebapp_005f0 = _jspx_th_fl_005fwebapp_005f0.doStartTag(); if (_jspx_th_fl_005fwebapp_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f0); return true; } _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f0); return false; } private boolean _jspx_meth_fl_005fwebapp_005f1(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:webapp com.edeal.frontline.WebappTag _jspx_th_fl_005fwebapp_005f1 = (com.edeal.frontline.WebappTag) _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.get(com.edeal.frontline.WebappTag.class); _jspx_th_fl_005fwebapp_005f1.setPageContext(_jspx_page_context); _jspx_th_fl_005fwebapp_005f1.setParent(null); int _jspx_eval_fl_005fwebapp_005f1 = _jspx_th_fl_005fwebapp_005f1.doStartTag(); if (_jspx_th_fl_005fwebapp_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f1); return true; } _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f1); return false; } private boolean _jspx_meth_fl_005fwebapp_005f2(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:webapp com.edeal.frontline.WebappTag _jspx_th_fl_005fwebapp_005f2 = (com.edeal.frontline.WebappTag) _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.get(com.edeal.frontline.WebappTag.class); _jspx_th_fl_005fwebapp_005f2.setPageContext(_jspx_page_context); _jspx_th_fl_005fwebapp_005f2.setParent(null); int _jspx_eval_fl_005fwebapp_005f2 = _jspx_th_fl_005fwebapp_005f2.doStartTag(); if (_jspx_th_fl_005fwebapp_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f2); return true; } _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f2); return false; } private boolean _jspx_meth_fl_005fgetMessage_005f1(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:getMessage com.edeal.frontline.GetMessageTag _jspx_th_fl_005fgetMessage_005f1 = (com.edeal.frontline.GetMessageTag) _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.get(com.edeal.frontline.GetMessageTag.class); _jspx_th_fl_005fgetMessage_005f1.setPageContext(_jspx_page_context); _jspx_th_fl_005fgetMessage_005f1.setParent(null); // /common/tabs.jsp(322,56) name = code type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f1.setCode("L65FE"); // /common/tabs.jsp(322,56) name = alt type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f1.setAlt("Fiche précédent"); int _jspx_eval_fl_005fgetMessage_005f1 = _jspx_th_fl_005fgetMessage_005f1.doStartTag(); if (_jspx_th_fl_005fgetMessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.reuse(_jspx_th_fl_005fgetMessage_005f1); return true; } _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.reuse(_jspx_th_fl_005fgetMessage_005f1); return false; } private boolean _jspx_meth_fl_005fwebapp_005f3(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:webapp com.edeal.frontline.WebappTag _jspx_th_fl_005fwebapp_005f3 = (com.edeal.frontline.WebappTag) _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.get(com.edeal.frontline.WebappTag.class); _jspx_th_fl_005fwebapp_005f3.setPageContext(_jspx_page_context); _jspx_th_fl_005fwebapp_005f3.setParent(null); int _jspx_eval_fl_005fwebapp_005f3 = _jspx_th_fl_005fwebapp_005f3.doStartTag(); if (_jspx_th_fl_005fwebapp_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f3); return true; } _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f3); return false; } private boolean _jspx_meth_fl_005fgetMessage_005f2(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:getMessage com.edeal.frontline.GetMessageTag _jspx_th_fl_005fgetMessage_005f2 = (com.edeal.frontline.GetMessageTag) _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.get(com.edeal.frontline.GetMessageTag.class); _jspx_th_fl_005fgetMessage_005f2.setPageContext(_jspx_page_context); _jspx_th_fl_005fgetMessage_005f2.setParent(null); // /common/tabs.jsp(334,51) name = code type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f2.setCode("L65FD"); // /common/tabs.jsp(334,51) name = alt type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005fgetMessage_005f2.setAlt("Fiche prochain"); int _jspx_eval_fl_005fgetMessage_005f2 = _jspx_th_fl_005fgetMessage_005f2.doStartTag(); if (_jspx_th_fl_005fgetMessage_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.reuse(_jspx_th_fl_005fgetMessage_005f2); return true; } _005fjspx_005ftagPool_005ffl_005fgetMessage_0026_005fcode_005falt_005fnobody.reuse(_jspx_th_fl_005fgetMessage_005f2); return false; } private boolean _jspx_meth_fl_005fwebapp_005f4(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:webapp com.edeal.frontline.WebappTag _jspx_th_fl_005fwebapp_005f4 = (com.edeal.frontline.WebappTag) _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.get(com.edeal.frontline.WebappTag.class); _jspx_th_fl_005fwebapp_005f4.setPageContext(_jspx_page_context); _jspx_th_fl_005fwebapp_005f4.setParent(null); int _jspx_eval_fl_005fwebapp_005f4 = _jspx_th_fl_005fwebapp_005f4.doStartTag(); if (_jspx_th_fl_005fwebapp_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f4); return true; } _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f4); return false; } private boolean _jspx_meth_fl_005fwebapp_005f5(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:webapp com.edeal.frontline.WebappTag _jspx_th_fl_005fwebapp_005f5 = (com.edeal.frontline.WebappTag) _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.get(com.edeal.frontline.WebappTag.class); _jspx_th_fl_005fwebapp_005f5.setPageContext(_jspx_page_context); _jspx_th_fl_005fwebapp_005f5.setParent(null); int _jspx_eval_fl_005fwebapp_005f5 = _jspx_th_fl_005fwebapp_005f5.doStartTag(); if (_jspx_th_fl_005fwebapp_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f5); return true; } _005fjspx_005ftagPool_005ffl_005fwebapp_005fnobody.reuse(_jspx_th_fl_005fwebapp_005f5); return false; } }