• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IntelliJ and jsp/Struts tag libs?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a jsp that is referencing some struts tag libs i.e.:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

And I can't get IntelliJ to find the above library - I have placed the WEB-INF everywhere I could think of for it to find them.

How can I have IntelliJ find the struts libraries - (I already have a struts.jar in the classpath), so I don't show a lot of errors in my jsp.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well the first part is when you have your web.xml includes the tag libraries, and the classpath is set, then a restart of IntelliJ IDEA is needed.

The second part is the dtd that the xml file is pointing to. It appears that some tag names added hyphens in them, whereas an older version did not have the hyphens. Try typing "<" and see the drop down that occurs and the tags that are available. This is also a way to make sure that your classpath and tag libraries are correct.

Good Luck and I hope that helps. At least that worked for a co-worker's machine when he was having the same problem.

Mark
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic