Configuring resources correctly

I've been having a hard time configuring some of the resources in IDEA correct. Especially two problems:

To have JSP-validation work, I need to map "http://java.sun.com/jsp/jstl/core" to the right tld/dtd. I have tried to map it to all the differendt tld's in appserv-jstl.jar in Java EE SDK, but none of them works. However validation works when i add the appserv-jstl.jar as a library in my application. This shouldn't be necessary.

Also, XML Deployment Descriptors for J2EE are giving me problems. I need to define my taglibs like this:

]]>

But I can't get this to be recognized. The namespace is shared between many files, so I can't figure out how to do the resource mapping.

Any help would be appreciated.

1 comment
Comment actions Permalink

geofrank wrote:

I've been having a hard time configuring some of the resources in IDEA correct. Especially two problems:

To have JSP-validation work, I need to map "http://java.sun.com/jsp/jstl/core" to the right tld/dtd. I have tried to map it to all the differendt tld's in appserv-jstl.jar in Java EE SDK, but none of them works. However validation works when i add the appserv-jstl.jar as a library in my application. This shouldn't be necessary.



The tld references java classes thus certain jsp validation features are
not available (but tag/attributes should be checked anyway). Btw, you
can add the jstl library to the IDEA class path and exclude it from
deployment


Also, XML Deployment Descriptors for J2EE are giving me problems. I need to define my taglibs like this:

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
version="2.0">

But I can't get this to be recognized. The namespace is shared between many files, so I can't figure out how to do the resource mapping.

Actually IDEA also uses fully qualified location to pickup the schema
(e.g. http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd).


Any help would be appreciated.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.