Hi!
I'm facing a problem when setting <attribute>...</attribute> in the taglib directives
file. My tld-file looks like this;
-------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>taglib1</shortname>
<info>some simple tags</info>
<tag>
<name>getFieldInRow</name>
<tagclass>tagLib1.GetFieldInRow</tagclass>
<bodycontent>empty</bodycontent>
<attribute>
<name>preText</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>postText</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>row</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>col</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>
-------------
In my "tag-class" it looks like this;
-------------
private String preText = "";
public void setPreText(String str) {
preText = str;
}
and so on with the other setters...
--------------
The problem is that I can't run the jsp when specifying the attributes. If i don't do
that it works fine (even when using attributes in the tag) but when i try to set the
attributes it fails with the following errormessage;
-------------
javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo: method
(Ljava/lang/String;ZZLjava/lang/String;)V not found
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo: method
(Ljava/lang/String;ZZLjava/lang/String;)V not found
at
allaire.jrun.jsp.JRunTagLibraryInfo.buildAttributeInfo(JRunTagLibraryInfo.java:234)
at allaire.jrun.jsp.JRunTagLibraryInfo.buildTagInfo(Compiled Code)
at allaire.jrun.jsp.JRunTagLibraryInfo.initialize(Compiled Code)
at allaire.jrun.jsp.JRunTagLibraryInfo.(JRunTagLibraryInfo.java:61)
at allaire.jrun.jsp.JSPParser.directive(JSPParser.java:774)
at allaire.jrun.jsp.JSPParser.parse(Compiled Code)
at allaire.jrun.jsp.JSPParser.writeXML(JSPParser.java:151)
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:123)
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:67)
at allaire.jrun.jsp.JSPServlet.parsePage(JSPServlet.java:409)
at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:381)
at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:202)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:169)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(Compiled Code)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(Compiled Code)
at allaire.jrun.WorkerThread.run(Compiled Code)
---------------
I need to set the <rtexprvalue>true</rtexprvalue> so i'm not happy with the "solution"
to skip the <attribute>-tags...
I'm using JRun3 and i just do not know whats might be wrong.
Anybody out there having a solutin on this....
KR
Anders
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets