?
Solved

JSP - TomCat Cannot find Struts tag libaries

Posted on 2003-03-19
3
Medium Priority
?
404 Views
Last Modified: 2013-11-24
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?
0
Comment
Question by:undata
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
kennethxu earned 1000 total points
ID: 8169220
>> 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.
0
 

Author Comment

by:undata
ID: 8169648
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!!
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 8169837
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 :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question