• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 416
  • Last Modified:

JSP - TomCat Cannot find Struts tag libaries

I am setting up a small J2EE application.  The database is already working.  Tested JSP presenting data from Database using Tomcat.  The problem now I am converting the same webapp to Struts.

The JSP blows up because it cannot locate the struts tag libraries:
org.apache.jasper.JasperException: /login.jsp(28,4) Unable to load class errors

Commenting OUT the following entry allows the JSP to compile and display:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

I copied the directory structure TomCat has, at the level they have Examples, I created a directory structure called "Employees".  In the Employees/WEB-INF I have a web.xml.

I have the taglib defined in the web.xml :

Anybody know Struts?
  • 2
1 Solution
>> Anybody know Struts?
yes, which version are you using? 1.1 beta or 1.0? I use 1.0.2. also, which version of tomcat?

have you copied those *.jar file to Employees/WEB-INF/lib, you at lease need standard.jar and struts.jar to be there. if you have old version of jdk and/or tomcat, you'll need more .jar files. and double check all *.tld files exist in WEB-INF.
undataAuthor Commented:
Woopee! I'm off and running. You were 100% on the mark. I just copied the struts.jar to my WEB-INF/lib directory. Thanks so much!!
oh, I mixed jstl with struts. standard.jar is for jstl. So yeh, struts.jar is enough. thanks for your points and my pleasure to help :)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now