aspose file tools
The moose likes JSP and the fly likes Unable to load tag handler class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Unable to load tag handler class " Watch "Unable to load tag handler class " New topic
Author

Unable to load tag handler class

indika prasad kularathne
Greenhorn

Joined: Oct 14, 2004
Posts: 20
Hai all..
i tried to create customer login page using custom tag. my folder structure is as follows.
c:/tomcat5.0/Login/loign.jsp
c:/tomcat5.0/Login/validate.jsp
c:/tomcat5.0/Login/successfull.jsp
c:/tomcat5.0/Login/retry.jsp
c:/tomcat5.0/Login/WEB-INF/checkUser.tld
c:/tomcat5.0/Login/WEB-INF/ind/pra/ire/Validate.class and ForceLogin.class

validate and ForceLogin is for check user name and passward.it successfully compiled.
Hear is my validate.jsp file.

<%@ taglib uri="WEB-INF/checkUser.tld" prefix="val" %>
<% String username = request.getParameter("username");%>
<% String pwd = request.getParameter("pwd");%>
<val:validate username ="<%=username%>"
password = "<%=pwd%>"
securePage ="successfull.jsp"/>

Hear is my checkUser.tld file.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.2</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>My login test</short-name>
<description>Example</description>
<tag>
<name>forceLogin</name>
<tag-class>ind.pra.ire.ForceLogin</tag-class>
<attribute>
<name>errorPage</name>
</attribute>
</tag>
<tag>
<name>validate</name>
<tag-class>ind.pra.ire.Validate</tag-class>
<attribute>
<name>username</name>
<rtexpvalue>true</rtexpvalue>
</attribute>
<attribute>
<name>password</name>
<rtexpvalue>true</rtexpvalue>
</attribute>
<attribute>
<name>securePage</name>
</attribute>
<attribute>
<name>errorPage</name>
</attribute>
</tag>
</taglib>

ok..when i going to run these pages it gives following error.

org.apache.jasper.JasperException: /Login/Validate.jsp(4,0) Unable to load tag handler class "ind.pra.ire.Validate" for tag "val:validate"
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:200)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1318)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

////////please help me to solve this problem. and tell me is this secure for authonication?
Thanks...
Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
I also face the same problem with tomcat 5.0.28
do anybody has a solution


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56179
    
  13

Anoop, please do not post the same question more than once.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to load tag handler class
 
Similar Threads
Not being able to locate TLD file?
confusion in running an simple jstl application
TLD and Deployment Descriptor not Working
org.apache.jasper.JasperException: Unable to compile class for JSP:
Custom TagLib