Can anyone please tell me where I am going wrong.I have also placed struts-bean.tld and struts-html.tld in the same dir structure.Why is it not showing exceptions for the other tld files refrenced in the jsp page.
Thanks for the response.I have modified my web.xml and the jsp page as you said.Now the web.xml and jsp page looks like as follows: jsp page ----------- <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="html" %> web.xml ------------ <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib>
similarly the struts-html,and struts-logic are defined .As I said before the dir structure is as follows : myproject/src/WEB-INF/struts-bean.tld myproject/src/WEB-INF/struts-logic.tld myproject/src/WEB-INF/struts-html.tld
I still keep getting the exception which says invalid TLD resource path.can anyone tell me where I am going wrong .
Originally posted by Venkatesh Kumar: I still keep getting the exception which says invalid TLD resource path.can anyone tell me where I am going wrong .
Take the error message seriously. Your TLDs aren't where you say they are. The paths you give are in a directory called src; are the tlds in the deployed web application?
By the way, there was no need to change your taglib URIs. They are just identifiers and have nothing to do with the physical location of the TLDs. They can be anything. BUT. The Struts taglibs have a default URI, such as http://jakarta.apache.org/struts/tags-bean for the bean taglib; just look near the top of the TLD file. I would strongly suggest you use these standard URIs. In fact, your TLDs should automatically be mapped to these URIs by the container without you having to specify anything in web.xml (see JSP.7.3.4ff in the JSP specification)! This feature can be temperamental, though, and hasn't always worked for me. Still it's worth a try, less work to do is always good
I still cound not resolve the exception "Invalid TLD resource path".Also when i was going through one of the tutorials I came across the following statement -- "In JBoss, the tag_library_name.tld must be located in the /WEB-INF/lib pathway in order to be located by the JBoss engine. "
I have also tried doing the above !!!Is the above statement true ???The taglib location looks simple but have not been able to go past the above problem...