aspose file tools*
The moose likes Spring and the fly likes Regarding:No tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Regarding:No tag "form" defined in tag library imported with prefix "form"" Watch "Regarding:No tag "form" defined in tag library imported with prefix "form"" New topic
Author

Regarding:No tag "form" defined in tag library imported with prefix "form"

Tuna Jen
Ranch Hand

Joined: Mar 18, 2009
Posts: 32
Hi Guys!!
Can any body tell me how to resolve this issue.In this application i am using jsp and Spring.i guess error says due to following code.

<form:form method="post" commandName="command">



org.apache.jasper.JasperException: /WEB-INF/jsp/NewEmployerGroup.jsp(48,0) No tag "form" defined in tag library imported with prefix "form"
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:1229)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1462)
org.apache.jasper.compiler.Parser.parse(Parser.java:137)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
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)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


Thanks
Prince

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you using a taglib prefixed with "form" that has a "form" tag in it? Since you don't include the taglib directive in question, it's difficult to help.
Tuna Jen
Ranch Hand

Joined: Mar 18, 2009
Posts: 32
Hi David , thanks for reply
Please find the below taglib dir , which is i am using




<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="form" uri="http://java.sun.com/jstl/fmt" %>
<!--<%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.1" %>-->
<!--<%@ taglib prefix="form1" uri="http://www.springframework.org/tags/form" %>-->
<%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.1" %>
<%@ taglib prefix="spring" uri="/spring" %>
Tuna Jen
Ranch Hand

Joined: Mar 18, 2009
Posts: 32
Hi David , thanks for reply
Please find the below taglib dir , which is i am using




<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="form" uri="http://java.sun.com/jstl/fmt" %>
<!--<%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.1" %>-->
<!--<%@ taglib prefix="form1" uri="http://www.springframework.org/tags/form" %>-->
<%@ taglib prefix="str" uri="http://jakarta.apache.org/taglibs/string-1.1" %>
<%@ taglib prefix="spring" uri="/spring" %>
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

As far as I know the "fmt" taglib has no "form" tag in it, just like the error message said. The most common prefix for the "fmt" taglib is "fmt"; I think you'd be better off sticking with convention.
 
 
subject: Regarding:No tag "form" defined in tag library imported with prefix "form"