Link to home
Start Free TrialLog in
Avatar of undata
undata

asked on

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 :
<taglib>
   <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
   <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

Anybody know Struts?
ASKER CERTIFIED SOLUTION
Avatar of kennethxu
kennethxu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of undata
undata

ASKER

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 :)