File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntelliJ and jsp/Struts tag libs?

 
Lars Filbert
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic