wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes Ecliplse - JSP Integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Ecliplse - JSP Integration " Watch "Ecliplse - JSP Integration " New topic
Author

Ecliplse - JSP Integration

Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
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


Regards
Binu


Sarath Mohan
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
BTW, which plug-in are u using for JSP development? It would be better, if you can provide just the name of the plug-in you are using... I hope people out here might be able to give you a hand...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Jim Steinberger
Greenhorn

Joined: Jun 22, 2004
Posts: 3
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 ]
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
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

http://javaboutique.internet.com/tutorials/three/

Regards
Sarath
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ecliplse - JSP Integration