I have installed JSP plugin in Eclipse. But it doesn't work. We use struts frame work and it is saying JSP Parsing Error: File WEB-INF/struts.tld is not found.
I am sure this tld are available in Eclipse path
I think your plug-in's working fine -- the error message it's giving you is a very good sign actually; it seems to have detected and pointed out a minor user error, which is exactly why it's useful.
I'm going to assume you're using the Lomboz plugin, and I'm going to assume you're getting this error when saving a JSP that has a taglib directive in it, such as: <%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>.
The taglib directive instructs Tomcat to load the specified tag library into memory if it isn't already, so that the JSP can make use of the special tags contained in it. Struts 1.1 comes packaged with six tag libraries: struts-bean.tld struts-html.tld struts-logic.tld struts-nested.tld struts-template.tld struts-tiles.tld
If you "intalled" Struts correctly, you put those *.tld files in the WEB-INF folder of your web application.
The uri portion of the <% taglib ... %> directive should point at a *.tld file in the WEB-INF directory. You posted that you're getting the error that "struts.tld" cannot be found -- unless you manually changed the filename of one of the supplied tag libraries, I think your problem is that you accidentally left out part of the filename. That is, "struts.tld" isn't one of the supplied tag libraries.
If that doesn't help you, could you post the <% taglib ... %> lines you have in the JSP that's giving you trouble?
Good luck! [ June 22, 2004: Message edited by: Jim Steinberger ]
posted 16 years ago
Thank you for the immediate help.
The problem was with the plug-in only. Now I could be able to solve the problem by using the on line tutorial
Ko Ko Naing
posted 16 years ago
Originally posted by Sarth Mohan: The problem was with the plug-in only. Now I could be able to solve the problem by using the on line tutorial
Sarth, that's why I was asking you the name of the plug-in u r using... Sometimes the plug-in itself got some bugs and the users got no way to solve those bugs, when integrating with Eclipse... So it should be aware to choose the right and almost bug-free plug-ins for Eclipse...
Co-author of SCMAD Exam Guide, Author of JMADPlus SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0