- This topic has 5 replies, 2 voices, and was last updated 20 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
Laurent DupervalMemberHI,
Another person with code assist prolemes. Sorry. 🙂
My project has Web capabilities. The Web root is / and webapp source for JSPs is /src/web. I’ve got the following mappings in my web.xml file:
<taglib> <taglib-uri>http://jakarta.apache.org/struts/tags-bean</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/struts/tags-html</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/struts/tags-logic</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/struts/tags-tiles</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/struts/tags-template</taglib-uri> <taglib-location>/WEB-INF/struts-template.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/struts/tags-nested</taglib-uri> <taglib-location>/WEB-INF/struts-nested.tld</taglib-location> </taglib>
My JSP’s say:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
or
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
Yet, in both cases, I still have problems with ME saying it cannot locate the <html:*> tags. Any ideas?
I’m using 3.8.2 with Eclipse 3.0.1. I’m on Win2K using Sun’s jdk 1.4.2_04.
L
Riyad KallaMemberL,
Do me a quick favor… comment out all of your <taglib> entries for the struts tags from your web.xml file, and just leave the lines that look like this in your JSP pages:<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
(the other one, /WEB-INF/struts-html.tld for the URI is incorrect, see this FAQ entry for why: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251)
Then expand your struts.jar file and go into the META-INF/tld directory and open any of the main TLDs… what does the <uri> tag at the top of the file say? That is the URI you want to use in your JSP page.
Now try closing your app, reopening it and rebuilding it. (close all editors first), then reopen your JSP page, does it all work now? Did you make sure to swear at the monitor a couple of times 😉
Laurent DupervalMemberThen expand your struts.jar file and go into the META-INF/tld directory and open any of the main TLDs… what does the <uri> tag at the top of the file say? That is the URI you want to use in your JSP page.
Nope, none of this works.
Did you make sure to swear at the monitor a couple of times 😉
Aha! THere we go! Poifect, everything is great now. 🙂 Thanks!
L, the marked man
Riyad KallaMemberJeez you really are a marked man… can you create a brand new Web Module Project, and slowly copy over the pages that don’t work and as soon as it breaks, zip it up and email it to support@genuitec.com. Someone will redirect it to me and I’ll play with it and see whats going on.
Also in your email make sure to reference this thread so I know whY i’m receviing this attachment.
Laurent DupervalMemberNo, no, no, everything works now. I thought I was being funny when I said everything was working… after I swore at the screen!
L
Riyad KallaMemberHha, ok I got the funny part (and even snickered a little), but because of the “Nope none of this worked” I figured you were being sarcastic… either way, I’m glad that its all working again.
-
AuthorPosts