Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ecliplse - JSP Integration

 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Jim Steinberger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic