Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a simple login page and i was trying to run it in struts but in that an error was coming

Java
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> 
 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>  

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login page |Hello World struts application in eclipse</title>
</head>
<body>
<h1>Login</h1> 
 <html:form action="login">          
 <bean:message key="label.username" />          
 <html:text property="userName"></html:text>          
 <html:errors property="userName" />          
 <br/>          
 <bean:message key="label.password"/>         
 <html:password property="password"></html:password>          
 <html:errors property="password"/>         
 <html:submit/>         
 <html:reset/>     
 </html:form> 
</body>
</html>


In that it was saying
Can not find the tag library descriptor for "http://jakarta.apache.org/struts-1.3.5/tags-html"

I have added struts.taglib jar files but still the error was there
please tell me any solutin
Posted
Comments
DalliaF 8-Mar-13 2:47am    
theirs a lot of solution on that in "stackoverflow.com" :D visit it...!!
Prasad Khandekar 24-Mar-13 14:42pm    
Hello Vinod,

Since you have mentioned eclipse I am assuming that you are seeing this error in eclipse problem window (shown just below the code window). If it's correct then the error you are getting is because eclipse is not able to find out the .tld file for the tag. Try adding the jar file in eclipse build path. Eclipse jsp validator will then find it and error will no longer appear in problem window.

Regards,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900