File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts-html.tld not found help me please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts-html.tld not found help me please" Watch "struts-html.tld not found help me please" New topic
Author

struts-html.tld not found help me please

tamnna arzoo
Greenhorn

Joined: Mar 23, 2010
Posts: 23
Iam making a form in struts in which i make on gui using tag libraries struts-html.tld and struts-bean.tld ,but the problem is the when i compile my jsp page the error comes that the struts-html.tld not found i did the right mapping int the struts-config.xml and web.xml but the problem is not solved

here iam sending the source code please help me

Struts-config.xml



========================
web.xml
============================


======================
Address.jsp
==========================



======================
AddressForm.java
======================


Source code fro my bean

Iam putting the my tlds in the right folder WEB-INF but problem is not solved


this is the error
org.apache.jasper.JasperException: File "/WEB-INF/struts-html" not found


plaase help me with explanation
Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

Change

to


- Chinna
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

If you are using Servlet 2.4 container, then you don't need tld files in the WEB-INF folder. The container automatically searches for tlds in jar files in the lib folder. So you can directly use taglib directive in your JSP page as given here. In that case you'll have to use taglib directives which look like this
With these taglib directives, you don't need to define taglib in your web.xml and you don't need to put struts-bean.tld and struts-html.tld in the WEB-INF folder...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
tamnna arzoo
Greenhorn

Joined: Mar 23, 2010
Posts: 23
THANKS A LOT DEAR
 
wood burning stoves
 
subject: struts-html.tld not found help me please
 
Similar Threads
Geting Blank Java Script Alert in client side validation using validator framework
HTTP Status 500 -
Cannot retrieve mapping for action
org.apache.jasper.JasperException: /Address.jsp(4,3) Attribute locale invalid for tag html according
org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.