This was resolved off the list since it was OT. Since others seem to have come across this as well, here is a copy of the thread that helped make sense of this for me. Hope it helps.
------------------------------------------ ------------------------------------------ -----Original Message----- From: Carl Fyffe [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 1:34 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Taglib reference and IntelliJ This is a direct reply since the topic is... WAY OT :) Do you have the struts.jar in your classpath? Is WEB-INF located in the document root? -----Original Message----- From: Steve [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 1:48 PM To: 'Carl Fyffe' Subject: RE: [OT] Taglib reference and IntelliJ I double checked and I do have struts.jar in the classpath and C:\jakarta-tomcat-4.0.4\webapps\test\WEB-INF does exist. That is what you mean when you refer to document root I'm assuming. -----Original Message----- From: Carl Fyffe [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:03 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Taglib reference and IntelliJ I hate saying this, because it always sounds belittling, but double check your spellings. I don't know how many times I put in /WEB-INF/tld/struts-bean.tld and it should have been /WEB-INF/tlds/struts-bean.tld Also, IDEA is expecting that tlds directory to be in WEB-INF, so double check that. I have never had to restart the app, but I have had to close a jsp and reopen it. I am currently using build #695, but I doubt much would have changed. There is something REALLY small that you are missing. Try pointing to another tld or using another taglib. Is it only the struts taglibs that aren't working? -----Original Message----- From: Steve [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:22 PM To: 'Carl Fyffe' Subject: RE: [OT] Taglib reference and IntelliJ Believe me I've had my share of chasing spelling mistakes around. In this case though everything is as it should be. I did notice something though. I was looking at the fils.jsp within tomcat dir where the project gets built to. We don't have currently have a WEB-INF in our project src structure. We are having ant create this for us when we build. I was looking at the file.jsp in the project view panel and it was being flagged with errors. However when I open the file.jsp in the web-view panel it resolves no problem. So I guess a more fundamental question is this. Should we have a WEB-INF dir already created in our project dir instead of relying on ant to build and copy the files there accordingly when it builds to tomcat? Sorry for the confusion on this. I appreciate your help though. Steve The short answer to your question is yes. If you care about the details and some possible suggestions continue reading: I was worried that would be the case. IDEA expects your web/doc root to have the same structure as a war file. There was much screaming and gnashing of teeth on the IDEA mailing list re: this, but it makes sense when you take into account the amount of configuration and confusion would be involved if they allowed all of that to be dynamic. So, they force you to have your WEB-INF under your web/doc root along with any of the other "structures" that you may have. Here is my layout Project/ - build.xml + build/ -- where everything ends up during a build. + src/ -- holds .java + test/ -- holds junit tests also .java + lib/ -- holds .jar's + war/ -- the webapp root + css/ + images/ + WEB-INF/ + dtd/ -- needed dtd's + jsp/ -- jsps. There are several dirs under this + tld/ -- struts-bean.tld, struts-html.tld, etc... + xml/ -- tiles-def.xml, struts-config.xml, etc... - web.xml Notice, no classes under WEB-INF, that gets created by ant. No lib under WEB-INF, that gets moved by ant. However, IDEA understands the layout of the war directory and displays the files appropriately. I hope that helps. If you have any trouble later please feel free to email me at [EMAIL PROTECTED] I may miss your emails to [EMAIL PROTECTED] (my mailing list account :) Carl ------------------------------------------ ------------------------------------------ -----Original Message----- From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 3:01 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Taglib reference and IntelliJ Could you tell how u did this ? --Siva Jagadeesan -----Original Message----- From: Steve [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 1:58 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Taglib reference and IntelliJ Thanks all. Seems it had to do with not having the WEB-INF dir structure in my project dir. I was having ant create this for me. IntelliJ didn't like that :) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Melissa L Kelley Sent: Friday, March 28, 2003 2:49 PM To: Struts Users Mailing List Subject: Re: [OT] Taglib reference and IntelliJ On Fri, 28 Mar 2003, Steve wrote: You need to add your tld as a resource. Go to Options -> IDE Settings -> Resources. Then add them one at a time. Example: URI=/WEB-INF/tlds/struts-bean.tld Location=pathtofileonfilesystem > I am having probems resolving my taglib uri reference in my .jsp Can > anyone that uses IntelliJ shed some light on this for me? I am running > 3.0.2 build #696. I have enabled web support with the document root > as: > > C:\jakarta-tomcat-4.0.4\webapps\test > > and the snip from my web.xml is : > > <taglib> > <taglib-uri>/WEB-INF/tlds/struts-bean.tld</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location> > </taglib> > > Now from my .jsp I have the following: > > <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> > > The reference is not resolving in the IDE and therefore my .jsp > (however the page does ultimately working as expected)appears with > error flags. Can anyone point me in the right direction. Thanks. > > steve > > --> stu: www.stuology.net It just no longer is plain simple safe fun when it's the psycho chimp that has the ray gun ------------------------------------------------ Stuology -- A million monkeys can't be wrong --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

