Post new topic   Reply to topic
Author Message
AnthonyArrigo



Joined: Dec 24, 2009
Posts: 3

What a frustrating start w/ME
Just installed on Mac OSX 10.5.8
Going through a Struts tutorial.
Clicked on Struts-config.xml and added a jsp
Opened the jsp and saw that one line in the source was flagged as an error.

<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>

Can not find the tag library descriptor for "http://jakarta.apache.org/struts/tags-template"

Found advice saying I should do a clean build... did that.
Should restart... did that.
Should start w/ -clean option.... don't know how to specify this?

Anyway... just wasted a couple of hours.
Any ideas on how to resolve this 'error' would be greatly appreciated.

Anthony
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-shalini
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

AnthonyArrigo ,
If you missed to include corresponding tld files into your project, you get this error.
So I would recommend you to check Struts preferences page whether tld files are existing or not.

To open Struts preferences page,first open preferences page.You can get it from window>preferences and then in the preferences page,go to Struts under MyEclipse Enterprise Workbench>project Capabiliities.

In Struts1.1 tab,if there are no tld files then add the required tld files and create new Struts based project to reflect the changes.

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
AnthonyArrigo



Joined: Dec 24, 2009
Posts: 3

Thanks for your quick reply... Sorry if I sounded cranky last night :-)

So... on my project capabilities struts tab I have the following:
struts-bean.tld - MYECLIPSE_STRUTS_HOME/1.1/tld/struts-bean.tld
struts-html.tld - MYECLIPSE_STRUTS_HOME/1.1/tld/struts-html.tld
struts-logic.tld - MYECLIPSE_STRUTS_HOME/1.1/tld/struts-logic.tld
struts-nested.tld - MYECLIPSE_STRUTS_HOME/1.1/tld/struts-nested.tld
struts-template.tld - MYECLIPSE_STRUTS_HOME/1.1/tld/struts-template.tld
struts-tiles.tld - MYECLIPSE_STRUTS_HOME/1.1/tld/struts-tiles.tld
validator-rules.xml - MYECLIPSE_STRUTS_HOME/1.1/tld/validator-rules.xml

These look similar, though not the same as those listed in my jsp:

%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

struts-bean vs tags-bean, etc...

Am I looking in the right area and/or reading these right?

Anthony
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
AnthonyArrigo



Joined: Dec 24, 2009
Posts: 3

So, how do I specify a -clean option at startup... as was suggested in a few posts I came across?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-shalini
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

Anthony,
The Struts taglibs have a default URI, such as http://jakarta.apache.org/struts/tags-bean for the bean taglib and TLDs should automatically be mapped to these URIs by the container without you having to specify anything in web.xml
Optionally, you can specify the tld location in web.xml pointing to the tld's located in your web-inf folder and specify a URI which can be used in the JSP.

Please refer to the following link for -clean
http://myeclipseide.com/PNphpBB2-viewtopic-t-10280.html

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
werowe



Joined: Feb 01, 2010
Posts: 5

You probably selected Struts 1.2 support instead of struts 1.1
 
 View user's profile Send private message  
Reply with quote Back to top
wincfc1



Joined: Feb 25, 2013
Posts: 1

try:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
 
 View user's profile Send private message  
Reply with quote Back to top
All times are GMT - 6 Hours
Post new topic   Reply to topic
® 2014 - Genuitec, LLC.