facebook

False Warning in JSP validation: Empty Block

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #273507 Reply

    Febris
    Member

    I have what appears to be a false warning from the JSP validator?
    ———————Configuration—————————————–
    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.5.1 GA
    —————————————————————————

    At the top of my JSP file I have:

    —————————-CODE FRAGMENT——————————————————
    <%@ page import=”com.ecosmosis.mvc.authentication.*”%>
    <%@ page import=”com.ecosmosis.mvc.accesscontrol.user.*”%>
    <%@ page import=”com.ecosmosis.orca.product.salescategory.*”%>
    <%@ page import=”java.util.*”%>

    <%@ include file=”/lib/member_header_no_auth.jsp” %>
    —————————————————————————

    The last line (shown): <%@ include file=”/lib/member_header_no_auth.jsp” %>

    Has a warning: “Empty block should be documented” and “Unnecessary Semicolon”

    The (warning) part that is highlighted is just: “/lib/member_header_no_auth.jsp”

    What’s up with this? There is no semicolon and it’s not an empty block?

    Thanks for help you can provide.

    #273528

    Loyal Water
    Member

    Can you paste the entire file here for me.

    #273568

    Febris
    Member

    I did a “File save as…” and the new file does NOT show the errors/warnings. The old file still does.

    I was doing this because the file is HUGE, and I want to cut it down to the “problem” before posting it.

    Can you tell me why the ‘exact same file’ left the in the ‘exact same path’ would NOT show errors.

    I’ve done “Clean” and such. Is there something else I need to do to ‘reset’ this?
    Thanks.

    #273574

    Loyal Water
    Member

    I’ve done “Clean” and such.

    Have you done a Project > Clean or -clean on the workspace ?

    This is very wierd. Try switch to a new workspace and try what you were trying again.

    #273586

    Febris
    Member

    First error is on this line:
    <%@ include file=”/lib/member_header_no_auth.jsp” %>
    Empty block should be documented, unnecessary semicolon.

    ————————CODE————————————-
    <%@ page import=”com.ecosmosis.mvc.sys.*”%>
    <%@ page import=”com.ecosmosis.common.customlibs.FIFOMap”%>
    <%@ page import=”com.ecosmosis.common.language.*”%>
    <%@ page import=”com.ecosmosis.orca.callcenter.*”%>
    <%@ page import=”com.ecosmosis.orca.eshop.*”%>
    <%@ page import=”com.ecosmosis.orca.member.*”%>
    <%@ page import=”com.ecosmosis.orca.outlet.*”%>
    <%@ page import=”com.ecosmosis.orca.counter.sales.*”%>
    <%@ page import=”com.ecosmosis.orca.pricing.*”%>
    <%@ page import=”com.ecosmosis.orca.product.salescategory.*”%>
    <%@ page import=”java.util.*”%>

    <%@ include file=”/lib/member_header_no_auth.jsp” %>

    <%
    String imgMenuSep = “<img width=3 height=12 border=0 src=” + SystemConstant.getWebapp() + “/callcenter/images/transparent_box.gif>”;

    boolean isLogin = false;
    LoginUserBean loginbean = (LoginUserBean) session.getAttribute(HttpAuthenticationManager.AUTH_KEY);

    String locale = SystemConstant.DEFAULT_LOCALE;
    String userid = “”;
    int usergroup = 0;
    MemberBean member = null;

    if (loginbean != null)
    {
    if (loginbean instanceof MemberLoginUserBean)
    {
    member = ((MemberLoginUserBean) loginbean).getMemberBean();
    }
    else if (loginbean instanceof CallCenterLoginUserBean)
    {
    CallCenterLoginUserBean callbean = (CallCenterLoginUserBean) loginbean;
    MemberLoginUserBean memberlogin = (MemberLoginUserBean) callbean.getServiceUserLoginBean();
    if (memberlogin != null)
    {
    member = memberlogin.getMemberBean();
    }
    }

    if ( (member != null) && (member.getStatus() == MemberConstants.MBRSHIP_ACTIVE || member.getStatus() == MemberConstants.MBRSHIP_PREREGISTER))
    isLogin = true;
    }

    // Menu Builder
    ModuleManager mgr = new ModuleManager();

    // Menu Company Profile
    int cmenuNo = 3;
    int companyMenuNo = cmenuNo+1;
    MenuBean[] companyMenu = null;

    int c_sysid = 4;
    int c_subsysid = 1;
    int c_catid = 2;
    int c_accessgroup = 50;
    String c_type = “D”;

    companyMenu = mgr.getFunctionsList(c_type,c_accessgroup,currentLocale,c_sysid,c_subsysid,c_catid);

    cmenuNo++;
    // End Menu Company Profile

    // Menu My Account
    int menuNo = 3;
    int myaccountNo = menuNo+1;
    MenuBean[] myaccount = null;

    if (isLogin) {

    int sysid = 4;
    int subsysid = 1;
    int catid = 1;

    int accessgroup = loginbean.getUserGroupType();

    String type = “D”;

    if (member.getType().equals(“P”)) {
    type = “P”;
    }

    /*if (member.getType().equals(“P”)) {

    type = “P”;
    if (member.getStatus() == MemberConstants.MBRSHIP_PREREGISTER)
    type = “PPR”;

    } else {

    if (member.getStatus() == MemberConstants.MBRSHIP_PREREGISTER)
    type = “DPR”;
    }*/

    myaccount = mgr.getFunctionsList(type,accessgroup,loginbean.getLocale(),sysid, subsysid,catid);

    menuNo++;

    } // if isLogin

    boolean showLng = false;
    LanguageManager langMgr = new LanguageManager();
    LanguageBean[] languageBeans = langMgr.getAll(“A”);
    FIFOMap languages = new FIFOMap();

    if (languageBeans.length > 0) {
    showLng = true;
    }

    boolean showOutlet = false;
    OutletManager outletmgr = new OutletManager();
    OutletBean[] eshops = outletmgr.getActiveEshop();

    if (!isLogin) {
    //eshops = outletmgr.getActiveEshop();
    if (eshops.length > 0) {
    showOutlet = true;
    }
    }

    boolean showCatalog = false;
    String currentCountry = “”;
    int counter = 0;

    if(eshops != null && eshops.length > 0)
    {
    while(eshops.length > counter)
    {
    if(eshops[counter].getOutletID() != null && eshops[counter].getOutletID().equals(currentEShopID))
    {
    currentCountry = eshops[counter].getOperationCountryID();
    break;
    }
    counter++;
    }
    }

    if(currentCountry.equals(“”))
    currentCountry = SystemConstant.DEFAULT_ESHOP;

    PriceCodeBean[] pcBeans = outletmgr.getCatalogListByShipCountry(currentCountry, OutletManager.OUTLET_COUNTERTYPE_ESHOP, currentLocaleID);

    /* PriceCodeCatalog catalog = null;

    PriceCodeBean[] pcBeans = outletmgr.getActiveCounterPriceCodeList(currentEShopID, OutletManager.OUTLET_COUNTERTYPE_ESHOP);
    if (pcBeans != null && pcBeans.length > 0) {
    PriceCodeManager pcMgr = new PriceCodeManager();
    catalog = pcMgr.getPriceCodeCatalogCategory(pcBeans[0].getPriceCodeID(), 0, currentLocaleID);
    }

    SalesCategoryBean[] category = new SalesCategoryBean[0];
    if (catalog != null) {
    category = catalog.getMainCatagoryArray();

    if (category != null && category.length > 0)
    showCatalog = true;
    }*/

    OrderCart cart = (OrderCart) session.getAttribute(EShopManager.CART_KEY);
    boolean hasCart = cart != null && cart.hasItems() ? true : false;
    %>

    <style type=”text/css”>
    <!–

    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }

    .select2 {
    background-color: #b9b5b2;
    color: #ffffff;
    font-family: verdana, arial, sans-serif;
    font-size: 8pt;
    border: 1px solid #7F9DB9
    }

    –>
    </style>

    <script language=”JavaScript”>
    <!–

    <%
    String FONT = “Helvetica, Arial, sans-serif”;
    String FONTSIZE = “10”;
    String SUBMENU_FONTCOLOR = “#FFFFFF”;
    String SUBMENU_HL_FONTCOLOR = “#FFFFFF”;
    String SUBMENU_BG_COLOR = “#B9B5B2”;
    String SUBMENU_HL_BG_COLOR = “#949170”;
    %>

    function mmLoadMenus() {

    // Menu – Catalog , kent
    <%
    StringBuffer cbuf = new StringBuffer();
    StringBuffer cmainbuf = new StringBuffer();
    String catalogmenuid = “mm_menu_1_0”;
    String categorymenuid = “”;
    PriceCodeCatalog catalog = null;
    SalesCategoryBean[] categories = null;
    PriceCodeManager pcMgr = new PriceCodeManager();
    String cate_outlet = “”;

    if(pcBeans != null && pcBeans.length > 0)
    {
    for(int x=0; x<pcBeans.length; x++)
    {
    catalog = pcMgr.getPriceCodeCatalogCategory(pcBeans[x].getPriceCodeID(), 0, currentLocaleID);
    categories = catalog.getMainCatagoryArray();

    if(categories != null && categories.length > 0)
    {
    showCatalog = true;
    String groupdesc = pcBeans[x].getPriceCodeID();
    categorymenuid = catalogmenuid+ “_” +(x+1);
    cbuf.append(“\nwindow.”+categorymenuid+” = new Menu(\””+groupdesc+”\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);

    for(int i=0; i<categories.length; i++)
    {
    cate_outlet = categories[i].getOutletID();
    String subdesc = categories[i].getName();
    String categoryID = String.valueOf(categories[i].getCatID());
    String link = SystemConstant.getControllerURL(EShopManager.TASKID_CALLCTR_BROWSE_ESHOP_CATALOG,request) + “&CategoryID=” + categoryID + “&OID=” + cate_outlet + “&CAID=” + groupdesc;
    cbuf.append(“\n”+categorymenuid+”.addMenuItem(\””+subdesc+”\”,\”window.open(‘”+link+”‘, ‘_parent’);\”);”);
    }

    cbuf.append(“\n”+categorymenuid+”.hideOnMouseOut=true;”);
    cbuf.append(“\n”+categorymenuid+”.bgColor=’#FFFFFF’;”);
    cbuf.append(“\n”+categorymenuid+”.menuBorder=0;”);
    cbuf.append(“\n”+categorymenuid+”.menuLiteBgColor=’#FFFFFF’;”);
    cbuf.append(“\n”+categorymenuid+”.menuBorderBgColor=’#CCCCCC’;”);
    cmainbuf.append(“\n”+catalogmenuid+”.addMenuItem(“+categorymenuid+”);”);
    }
    }
    cbuf.append(“\nwindow.”+catalogmenuid+” = new Menu(\”root\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);
    cbuf.append(cmainbuf.toString());
    cbuf.append(“\n”+catalogmenuid+”.hideOnMouseOut=true;”);
    cbuf.append(“\n”+catalogmenuid+”.bgColor=’#FFFFFF’;”);
    cbuf.append(“\n”+catalogmenuid+”.menuBorder=0;”);
    cbuf.append(“\n”+catalogmenuid+”.menuLiteBgColor=’#FFFFFF’;”);
    cbuf.append(“\n”+catalogmenuid+”.menuBorderBgColor=’#CCCCCC’;”);
    }
    %>
    <% if (showCatalog) {

    out.println(cbuf.toString());

    } %>

    // Menu – Company
    <%
    int c_groupno = 0;
    String c_groupdesc = “”;
    StringBuffer c_buf = new StringBuffer();
    StringBuffer c_endbuf = new StringBuffer();
    String c_menuid = “mm_menu_2_0”;
    String c_submenuid = “mm_menu_2_0”;

    if (companyMenu != null && companyMenu.length > 0) {

    c_buf.append(“\n”+”window.”+c_menuid+” = new Menu(\”root\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);

    for (int i=0; i < companyMenu.length ; i++) {

    /*if (companyMenu[i].getGroupDesc() != null && !companyMenu[i].getGroupDesc().equals(c_groupdesc))
    {
    if (!c_groupdesc.equals(“”))
    {
    c_buf.append(“\n”+c_submenuid+”.hideOnMouseOut=true;”);
    c_buf.append(“\n”+c_submenuid+”.bgColor=’#FFFFFF’;”);
    c_buf.append(“\n”+c_submenuid+”.menuBorder=0;”);
    c_buf.append(“\n”+c_submenuid+”.menuLiteBgColor=’#FFFFFF’;”);
    c_buf.append(“\n”+c_submenuid+”.menuBorderBgColor=’#CCCCCC’;”);
    }

    c_groupno++;
    c_groupdesc = companyMenu[i].getGroupDesc();
    c_submenuid = c_menuid+”_”+c_groupno;
    c_buf.append(“\n”+”window.”+c_submenuid+” = new Menu(\””+c_groupdesc+”\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);
    c_endbuf.append(“\n”+c_menuid+”.addMenuItem(“+c_submenuid+”);”);
    }*/

    String c_link = “”;
    String c_desc = companyMenu[i].getDesc();
    if (companyMenu[i].getTaskID() != null) {
    int c_taskID = Integer.parseInt(companyMenu[i].getTaskID());
    c_link = SystemConstant.getControllerURL(c_taskID,request)+ “&” + companyMenu[i].getDefault_parameter();
    c_buf.append(“\n”+c_submenuid+”.addMenuItem(\””+c_desc+”\”,\”window.open(‘”+c_link+”‘, ‘_parent’);\”);”);
    }

    //c_buf.append(“\n”+c_submenuid+”.addMenuItem(\””+c_desc+”\”,\”window.open(‘”+c_link+”‘, ‘_parent’);\”);”);
    } // end for

    c_buf.append(“\n”+c_submenuid+”.hideOnMouseOut=true;”);
    c_buf.append(“\n”+c_submenuid+”.bgColor=’#FFFFFF’;”);
    c_buf.append(“\n”+c_submenuid+”.menuBorder=0;”);
    c_buf.append(“\n”+c_submenuid+”.menuLiteBgColor=’#FFFFFF’;”);
    c_buf.append(“\n”+c_submenuid+”.menuBorderBgColor=’#CCCCCC’;”);

    /*c_buf.append(“\n”+”window.”+c_menuid+” = new Menu(\”root\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);
    c_buf.append(c_endbuf.toString());
    c_buf.append(“\n”+c_menuid+”.hideOnMouseOut=true;”);
    c_buf.append(“\n”+c_menuid+”.bgColor=’#FFFFFF’;”);
    c_buf.append(“\n”+c_menuid+”.menuBorder=0;”);
    c_buf.append(“\n”+c_menuid+”.menuLiteBgColor=’#FFFFFF’;”);
    c_buf.append(“\n”+c_menuid+”.menuBorderBgColor=’#CCCCCC’;”);*/

    } // end if
    %>

    <%= c_buf.toString() %>

    // Menu – My Account
    <% if (isLogin) { %>

    <%
    int groupno = 0;
    String groupdesc = “”;
    StringBuffer buf = new StringBuffer();
    StringBuffer endbuf = new StringBuffer();
    String menuid = “mm_menu_3_0”;
    String submenuid = “”;

    if (myaccount != null && myaccount.length > 0) {

    for (int i=0; i < myaccount.length ; i++) {

    if (myaccount[i].getGroupDesc() != null && !myaccount[i].getGroupDesc().equals(groupdesc))
    {
    if (!groupdesc.equals(“”))
    {
    buf.append(“\n”+submenuid+”.hideOnMouseOut=true;”);
    buf.append(“\n”+submenuid+”.bgColor=’#FFFFFF’;”);
    buf.append(“\n”+submenuid+”.menuBorder=0;”);
    buf.append(“\n”+submenuid+”.menuLiteBgColor=’#FFFFFF’;”);
    buf.append(“\n”+submenuid+”.menuBorderBgColor=’#CCCCCC’;”);
    }

    groupno++;
    groupdesc = myaccount[i].getGroupDesc();
    submenuid = menuid+”_”+groupno;
    buf.append(“\n”+”window.”+submenuid+” = new Menu(\””+groupdesc+”\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);
    endbuf.append(“\n”+menuid+”.addMenuItem(“+submenuid+”);”);
    }

    String link = “”;
    String desc = myaccount[i].getDesc();
    if (myaccount[i].getTaskID() != null) {
    int taskID = Integer.parseInt(myaccount[i].getTaskID());
    link = SystemConstant.getControllerSSLURL(taskID,request)+ “&” + myaccount[i].getDefault_parameter();
    }

    buf.append(“\n”+submenuid+”.addMenuItem(\””+desc+”\”,\”window.open(‘”+link+”‘, ‘_parent’);\”);”);
    } // end for

    buf.append(“\n”+submenuid+”.hideOnMouseOut=true;”);
    buf.append(“\n”+submenuid+”.bgColor=’#FFFFFF’;”);
    buf.append(“\n”+submenuid+”.menuBorder=0;”);
    buf.append(“\n”+submenuid+”.menuLiteBgColor=’#FFFFFF’;”);
    buf.append(“\n”+submenuid+”.menuBorderBgColor=’#CCCCCC’;”);

    buf.append(“\n”+”window.”+menuid+” = new Menu(\”root\”,176,22,\””+FONT+”\”,\””+FONTSIZE+”\”,\””+SUBMENU_FONTCOLOR+”\”,\””+SUBMENU_HL_FONTCOLOR+”\”,\””+SUBMENU_BG_COLOR+”\”,\””+SUBMENU_HL_BG_COLOR+”\”,\”left\”,\”middle\”,3,0,1000,-5,7,true,true,true,10,false,false);”);
    buf.append(endbuf.toString());
    buf.append(“\n”+menuid+”.hideOnMouseOut=true;”);
    buf.append(“\n”+menuid+”.bgColor=’#FFFFFF’;”);
    buf.append(“\n”+menuid+”.menuBorder=0;”);
    buf.append(“\n”+menuid+”.menuLiteBgColor=’#FFFFFF’;”);
    buf.append(“\n”+menuid+”.menuBorderBgColor=’#CCCCCC’;”);

    } // end if
    %>

    <%= buf.toString() %>

    <% } // end if Login%>

    // Menu – Countries
    <% if (showOutlet) { %>
    window.mm_menu_4_0 = new Menu(“root”,176,22,”<%=FONT%>”,<%=FONTSIZE%>,”<%=SUBMENU_FONTCOLOR%>”,”<%=SUBMENU_HL_FONTCOLOR%>”,”<%=SUBMENU_BG_COLOR%>”,”<%=SUBMENU_HL_BG_COLOR%>”,”left”,”middle”,3,0,1000,-5,7,true,true,true,10,false,false);
    <% } %>

    <% if (showOutlet) { %>

    <%
    StringBuffer ctrybuf = new StringBuffer();
    String ctrymenuid = “mm_menu_4_0”;

    for (int i=0;i< eshops.length;i++) {
    String eshopid = eshops[i].getOutletID();;
    String link = SystemConstant.getControllerURL(EShopManager.TASKID_CALLCTR_CHANGE_ESHOP_SETTINGS,request) + “&eshopid=” + eshopid;
    String desc = eshops[i].getEshopName();
    ctrybuf.append(“\n”+ctrymenuid+”.addMenuItem(\””+desc+”\”,\”window.open(‘”+link+”‘, ‘_parent’);\”);”);
    }
    %>

    <%= ctrybuf.toString() %>

    mm_menu_4_0.hideOnMouseOut=true;
    mm_menu_4_0.bgColor=’#FFFFFF’;
    mm_menu_4_0.menuBorder=0;
    mm_menu_4_0.menuLiteBgColor=’#FFFFFF’;
    mm_menu_4_0.menuBorderBgColor=’#CCCCCC’;

    <% } %>

    // Menu – Languages
    <% if (showLng) { %>
    window.mm_menu_5_0 = new Menu(“root”,176,22,”<%=FONT%>”,<%=FONTSIZE%>,”<%=SUBMENU_FONTCOLOR%>”,”<%=SUBMENU_HL_FONTCOLOR%>”,”<%=SUBMENU_BG_COLOR%>”,”<%=SUBMENU_HL_BG_COLOR%>”,”left”,”middle”,3,0,1000,-5,7,true,true,true,10,false,false);
    <% } %>

    <%
    StringBuffer lngbuf = new StringBuffer();
    String lngmenuid = “mm_menu_5_0”;

    for (int i=0;i< languageBeans.length;i++) {
    String localeid = languageBeans[i].getLocaleStr();
    String link = SystemConstant.getControllerURL(EShopManager.TASKID_CALLCTR_CHANGE_ESHOP_SETTINGS,request) + “&localeid=” + localeid;
    String desc = languageBeans[i].getDesc();
    lngbuf.append(“\n”+lngmenuid+”.addMenuItem(\””+desc+”\”,\”window.open(‘”+link+”‘, ‘_parent’);\”);”);
    }
    %>

    <% if (showLng) { %>

    <%= lngbuf.toString() %>

    mm_menu_5_0.hideOnMouseOut=true;
    mm_menu_5_0.bgColor=’#FFFFFF’;
    mm_menu_5_0.menuBorder=0;
    mm_menu_5_0.menuLiteBgColor=’#FFFFFF’;
    mm_menu_5_0.menuBorderBgColor=’#CCCCCC’;

    <% } %>

    <% if (isLogin) { %>
    mm_menu_3_0.writeMenus();
    <% } %>

    <% if (companyMenu != null) { %>
    mm_menu_2_0.writeMenus();
    <% } %>

    } // end function

    //–>
    </script>

    <script language=”JavaScript” src=”<%=SystemConstant.getWebapp()%>/callcenter/menu/mm_menu.js”></script>
    <script language=”JavaScript”>mmLoadMenus();</script>
    <script LANGUAGE=”JavaScript”>
    <!–

    function changeSetting(){
    var thisform = document.changeSettings;
    thisform.submit();
    }

    // –>
    </script>

    <table cellpadding=”0″ cellspacing=”0″ border=”0″ width=”750″ height=”22″ align=”center”>
    <tr>
    <td>
    <a href=”<%=request.getContextPath()%>/callcenter/main.jsp” target=”_parent”” target=”_parent”><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_HOME”/><%= imgMenuSep %>|</span></a>

    <% if (showCatalog) { %>
    <a href=”#” name=”link2″ target=”_self” id=”link2″ onmouseover=”MM_showMenu(window.mm_menu_1_0,-7,19,null,’link2′)” onmouseout=”MM_startTimeout();”><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_PRODUCT”/><%= imgMenuSep %>|</span></a>
    <% } else { %>
    <a href=”#” name=”link2″ target=”_self” id=”link2″><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_PRODUCT”/><%= imgMenuSep %>|</span></a>
    <% } %>

    <a href=”#” name=”link3″ target=”_self” id=”link3″ onmouseover=”MM_showMenu(window.mm_menu_2_0,-7,19,null,’link3′)” onmouseout=”MM_startTimeout();”><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_COMPANY”/><%= imgMenuSep %>|</span></a>

    <% if (isLogin) { %>
    <a href=”#” name=”link4″ target=”_self” id=”link4″ onmouseover=”MM_showMenu(window.mm_menu_3_0,-7,19,null,’link4′)” onmouseout=”MM_startTimeout();”><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_MY_ACCOUNT”/><%= imgMenuSep %>|</span></a>
    <% } %>

    <% if (showOutlet) { %>
    <a href=”#” name=”link5″ target=”_self” id=”link5″ onmouseover=”MM_showMenu(window.mm_menu_4_0,-7,19,null,’link5′)” onmouseout=”MM_startTimeout();”><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_COUNTRY”/><%= imgMenuSep %>|</span></a>
    <% } %>

    <% if (showLng) { %>
    <a href=”#” name=”link6″ target=”_self” id=”link6″ onmouseover=”MM_showMenu(window.mm_menu_5_0,-7,19,null,’link6′)” onmouseout=”MM_startTimeout();”><span class=”text2″><%= imgMenuSep %><i18n:label code=”MENU_LANGUAGE”/><%= imgMenuSep %>|</span></a>
    <% } else { %>
    <a href=”#” name=”link6″ target=”_self” id=”link6″><span class=”menutext”><%= imgMenuSep %><i18n:label code=”MENU_LANGUAGE”/><%= imgMenuSep %>|</span></a>
    <% } %>

    <% if (hasCart) { %>
    <a href=”<%= SystemConstant.getControllerURL(EShopManager.TASKID_CALLCTR_ESHOP_CARD_VIEW,request) %>”><span class=”text2″><%= imgMenuSep %><i18n:label code=”ESHOP_SHOPPING_CART”/></span></a>
    <% } %>
    </td>
    </tr>
    </table>

    #273588

    archville
    Participant

    Febris,
    As far as I’ve seen, these weird errors happen for a couple of reasons. The most sensible one is that since the file “member_header_no_auth.jsp” is statically included, the validator has found a problem within the included file but shows the error within the parent file. Since you managed to make a copy of the parent file, and solved the problem, the second explanation, however silly it may sound, *may* be the reason. Here it is:

    I’ve noticed that the MyEclipse plugin has an occasional annoying editor caching problem. Let’s say you have a valid error in the JSP page, and you choose to ignore it momentarily and continue working on your code. When you get back to the error and fix it, the message won’t go away until you refresh that portion of the editor cache. You can achieve this by “Cutting” the error-messaged portion of the code, saving the file, and “Pasting” it right back where it was.
    I can’t be certain this is your situation until the support team and myself can access both your files. If the forum doesn’t support file attachments, maybe one of us providing an email address won’t be such a bad idea.

    #288336

    knoveldev
    Member

    Is there another way to refresh the editor cache without cutting, pasting, and saving the file?
    There should be a global way to refresh instead of going into each JSP file and performing these operations…

    #288515

    Loyal Water
    Member

    You are talking about the MyEclipse JSP editor or the MyEclipse Visual JSP Editor? Right-Clicking on the file and selecting refresh does not help ?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: False Warning in JSP validation: Empty Block

You must be logged in to post in the forum log in