• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to load tag handler class  RSS feed

 
indika prasad kularathne
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also face the same problem with tomcat 5.0.28
do anybody has a solution
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anoop, please do not post the same question more than once.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!