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

Unable to find setter method for attribute: name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.1.0
    • None
    • Unknown
    • None
    • Operating System: other
      Platform: Other
    • 31291

    Description

      when moving to struts.jar 1.2, I get

      org.apache.jasper.JasperException: /index_en.jsp(112,0) Unable to find setter
      method for attribute: name
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
      org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2674)
      org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2822)
      org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
      org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1667)
      org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
      org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
      org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
      org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
      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)

      that line 112 is a form
      <html:form action="login.do" name="loginForm"
      type="com.privasphere.privalope.form.LoginForm" focus="login">

      Three issues:
      1) When moving back to struts.jar 1.1 the error is gone, i.e. the LoginForm
      class is found
      2) there is no verion 1.2 tag available in this bugzilla
      3) provide a better error message e.g. mentioning the class-name, etc.

      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: