<%@ include file="/WEB-INF/jspf/stcontext.jspf" %> <% /* This code can maybe be reached or compiled by choosing My Account, User Activity (in Action column), Download XML... */ WebContext subCtx = ctx; int n; String which = (String) subCtx.get("which"); subCtx.addQuery(SurveyMain.QUERY_LOCALE, ctx.getLocale().toString()); %> <%! // writeMenu: 4 args, no relation to SurveyMain.writeMenu() static void writeMenu(JspWriter jout, WebContext wCtx, SurveyMenus.Section sec, int covlev) throws java.io.IOException { String which = (String) wCtx.get("which"); PathHeader.PageId pageId = wCtx.getPageId(); List pages = new ArrayList(); for(SurveyMenus.Section.Page p : sec) { pages.add(p); } boolean any = false; if(pageId!=null&& pageId.getSectionId() == sec.getSection()) { any = true; } jout.println(""); } %> Sections: <% // Note: the function ctx.getCoverageSetting() does not exist. // This code therefore falls back to Level.COMPREHENSIVE. String covlev = null; // ctx.getCoverageSetting(); Level coverage = Level.COMPREHENSIVE; if(covlev!=null && covlev.length()>0) { coverage = Level.get(covlev); } String effectiveCoverageLevel = ctx .getEffectiveCoverageLevel(ctx.getLocale().toString()); int workingCoverageValue = Level.get(effectiveCoverageLevel) .getLevel(); for(SurveyMenus.Section sec : ctx.sm.getSTFactory().getSurveyMenus()) { writeMenu(out,ctx, sec, workingCoverageValue); // in this file, menu_top.jsp, above } out.flush(); ctx.flush(); %>
Review: <% for (SurveyMain.ReportMenu m : SurveyMain.ReportMenu.values()) { final String theClass = request.getQueryString().contains(m.urlQuery())?"selected":"notselected"; String url = ctx.context()+"/v#"+m.urlStub()+"/"+ctx.getLocale(); %> <% } %>
<% /* END NON JAVASCRIPT */ out.flush(); ctx.flush(); %>