Hello,

I downloaded and installed struts2. However, when I tried the bean tag example:

<-- in jsp form -->
<s:bean name="org.apache.struts2.example.counter.SimpleCounter" var="counter">
  <s:param name="foo" value="BAR" />
The value of foot is : <s:property value="foo"/>, when inside the bean tag <br />
</s:bean>

I got the following exceptions, could someone enlighten me how to setup the correct TLD please?


org.apache.jasper.JasperException: /test.jsp(29,0) Attribute var invalid for tag bean according to TLD
        
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:986)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706)
        org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442)
        org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:726)
        org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442)
        org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
        org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214)
        org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220)
        org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
        org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
org.apache.jasper.compiler.Validator.validate(Validator.java:1484)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to