Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2211

[taglib] say in which scope searched when "No bean found under attribute key" is issued, which tag, which jsp line

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.1.0
    • None
    • Unknown
    • None
    • Operating System: other
      Platform: Other
    • 31255

    Description

      when having many tag references to a bean and one of them is tied to a wrong
      scope, it would be very helpful to say which scopes where searched when this
      happens. When the error message would name "session" where the bean was not
      found and all the other references do not specify a scope, it is much easier to
      know where the problem lies.

      javax.servlet.ServletException: No bean found under attribute key oneLoper
      org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
      org.apache.jsp.adminMoney_005fde_jsp._jspService(adminMoney_005fde_jsp.java:532)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      root cause

      javax.servlet.jsp.JspException: No bean found under attribute key oneLoper
      org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:221)
      org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
      org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
      org.apache.jsp.adminMoney_005fde_jsp._jspx_meth_logic_equal_0(adminMoney_005fde_jsp.java:2343)
      org.apache.jsp.adminMoney_005fde_jsp._jspService(adminMoney_005fde_jsp.java:415)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      Attachments

        Activity

          People

            Unassigned Unassigned
            hauser@acm.org Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: