How about your struts.jar?  You might have multiple copies of it, and the
one being picked up happens to be an older copy.

-----Original Message-----
From: Jim Anderson [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 2:23 PM
To: Struts Users Mailing List
Cc: Jim Anderson
Subject: [other] newbie question/problem


I've been trying to modify the logon app from "Struts in Action" to use
the new features in Struts 1.1 but am having a problem I haven't be
able to solve. I replaced <html:errors/> in Logon.jsp with

<html:messages id="error">
   <bean:write name="error"/>
</html:messages>

and get the following error:

org.apache.jasper.JasperException: /pages/Logon.jsp(7,0) No such tag
messages in the tag library imported with prefix html

Of course it looks like I'm somehow referencing the 1.0 version of
struts-html, but I don't see how that can be.

In web.xml I've got:

   <taglib>
     <taglib-uri>/tags/struts-html</taglib-uri>
     <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
   </taglib>

and the struts-html.tld in /WEB-INF/lib contains:

<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>
...
<tag>
<name>messages</name>
<tagclass>org.apache.struts.taglib.html.MessagesTag</tagclass>
<teiclass>org.apache.struts.taglib.html.MessagesTei</teiclass>
...

Any ideas???


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




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

Reply via email to