dear all,
i got this error when i tried to access the jsp, and dont know what does
the error trying to tell.
org.apache.jasper.compiler.CompileException:
C:\tomcat\webapps\ccms\testDBTag.jsp(0,0) Unable to open taglibrary
/Web-inf/lib/login.jar : Could not locate TLD META-INF/taglib.tld
i've placed my jar file which is login.jar into /web-inf/lib/
in web.xml -
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
<taglib>
<taglib-uri>/WEB-INF/lib/login.jar</taglib-uri>
<taglib-location>/WEB-INF/loginvalidate.tld</taglib-location>
</taglib>
</web-app>
in loginvalidate.tld
<?xml version="1.0" encoding="ISO-8859-1" ?>
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.1</jsp-version>
<short-name>login</short-name>
<description>
A tag library to assist in session based security for jsp pages.
</description>
<tag>
<name>loginValidate</name>
<tag-class>LoginValidateTag</tag-class>
<attribute>
<!-- Default session variable name is "isLoggedIn". -->
<name>sessionVar</name>
<required>false</required>
</attribute>
<attribute>
<!-- Default redirect page is "login.jsp" -->
<name>redirectPage</name>
<required>false</required>
</attribute>
</tag>
</taglib>
in my jsp
<%@ taglib uri="/Web-inf/lib/login.jar" prefix="login"%>
<login:loginValidate sessionVar="userid" redirectPage="/index.jsp" />
can anyone shed some light on this?
thanks.
ced
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets