Hi,
I got the following error when I am trying to run my
struts application.
ERROR::
/********************************
org.apache.jasper.JasperException: /registration.jsp(7,2) No tag "form" defined in tag library imported with prefix "html"
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1231)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1467)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
************************************/
The following one is the
jsp page.
Register.jsp::
<%@ page language="Java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html>
<body>
<html:form action="register">
<bean:message key="label.firstname"/>
<html:text property="firstName"></html:text>
<html:errors property="firstName"></html:errors>
<br>
<bean:message key="label.lastName" />
<html:text property="lastName"></html:text>
<html:errors property="lastName"></html:errors>
<br>
<bean:message key="label.username"/>
<html:text property="userName"></html:text>
<html:errors property="userName"></html:errors>
<br>
<bean:message key="label.password"/>
<html:text property="password"></html:text>
<html:errors property="password"></html:errors>
<br>
<bean:message key="label.repassword"/>
<html:text property="repassword"></html:text>
<html:errors property="repassword"></html:errors>
<html:submit />
<html:reset/>
</html:form>
</body>
</html>
plaese give me solution to this problem.
Thanking you.