Hi

I'm a newbie to Struts so I'm sorry if this is a basic error but I can't
figure out what I'm doing wrong.

I want to pass an attribute to a tag library I wrote as follows:

        <app:linkCreateProcess page="/createprocess.do?" templateid="1006">

This is the snippet from my app.tld:

        <tag>
          <name>linkCreateProcess</name>
          <tagclass>com.myTest.LinkCreateProcessTag</tagclass>
          <attribute>
            <name>name</name>
            <required>false</required>
            <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
            <name>page</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
          </attribute>
          <attribute>
                  <name>templateid</name>
                  <required>false</required>
          </attribute>
  </tag>

But when I try to access the JSP page I get the following:

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP
        at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)
        at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
        at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
(etc)

The createprocess code works with hard coded values for templateid so I'm
fairly sure it's the way I'm using the attribute that's the problem

Can anyone shed any light on this?

Thanks

Niall




Reply via email to