aspose file tools*
The moose likes Struts and the fly likes I am getting following error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I am getting following error" Watch "I am getting following error" New topic
Author

I am getting following error

Mano haran
Greenhorn

Joined: Nov 30, 2006
Posts: 15
Parsing of JSP File '/welcome.jsp' failed:
--------------------------------------------------------------------------------
/welcome.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'name', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in /welcome.jsp line 3:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

have you configured your taglib-uri and tablib-location in web.xml?


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Mano haran
Greenhorn

Joined: Nov 30, 2006
Posts: 15
Originally posted by Raghavan Muthu:
have you configured your taglib-uri and tablib-location in web.xml?
Mano haran
Greenhorn

Joined: Nov 30, 2006
Posts: 15
Originally posted by Raghavan Muthu:
have you configured your taglib-uri and tablib-location in web.xml?


yes i have configured web.xml file, as follows

<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>

but still now i am getting this error.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Just check for struts.jar being same in both the development and deployment environments.

Which App/Web server you use? Check and keep the same struts.jar file in the deployment location as well. That might be one of the reasons.

Check this url
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In later versions of Struts, the name and type attribute of the <html:form> tag have been deprecated. Just remove these attributes from your <html:form> tag. They are unnecessary because both the name and typr are already defined in the struts-config.xml file.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am getting following error