File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts problem

Richard Mendoza
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a simple struts application. I used eclipse 3.0 and jboss 3.2.5.
These are the contents of my web.xml:

<?xml version="1.0"?>
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


<!-- Action Servlet Configuration -->

<!-- Action Servlet Mapping -->

<!-- Taglib Configuration -->

The struts-config.xml has these contents:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"

<!-- ======= Form Bean Definitions ============================ -->
<form-bean name="lookupForm"

<!-- ======= Action Mapping Definitions ============== -->
<action path="/Lookup"
<forward name="success" path="/jsp/quote.jsp" />
<forward name="failure" path="/jsp/index.jsp" />

<!-- ====== Message Resources Definitions ======== -->

I placed these two xml's under WEB-INF directory together with the struts-html.tld.

I think I have successfully deployed the war file, but when I try to run the index.jsp, I always got this error:

javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V

java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V

Can somebody help me? thanks!

Sarath Mohan
Ranch Hand
Posts: 213
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ensure all jars files and tld files required are placed in appropriate directories
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic