File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes IntelliJ and jsp/Struts tag libs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "IntelliJ and jsp/Struts tag libs?" Watch "IntelliJ and jsp/Struts tag libs?" New topic

IntelliJ and jsp/Struts tag libs?

Lars Filbert

Joined: Aug 26, 2004
Posts: 9

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

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: IntelliJ and jsp/Struts tag libs?
It's not a secret anymore!