How to get jstl working

Hello,

I'm using testing Idea 7.
But I can't get the jstl working...

I've created a new Project (and added jsf support)
Now in my index.jsp I have following taglibs
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>

It does not know the http://java.sun.com/jstl/core uri... (can't add it)
Are there any new ways to do a <c:if ... > for example?

thanks
Dirk

8 comments

Add jstl jar to module.

Dirk Reske wrote:

Hello,

I'm using testing Idea 7.
But I can't get the jstl working...

I've created a new Project (and added jsf support)
Now in my index.jsp I have following taglibs
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>

It does not know the http://java.sun.com/jstl/core uri... (can't add it)
Are there any new ways to do a <c:if ... > for example?

thanks
Dirk



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

0

Hello Dirk,

I'm using testing Idea 7.
But I can't get the jstl working...
I've created a new Project (and added jsf support)
Now in my index.jsp I have following taglibs
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
It does not know the http://java.sun.com/jstl/core uri... (can't add
it) Are there any new ways to do a <c:if ... > for example?


I'm not using JSF. However, to get plain JSTL to work, wou'll need to add
an JSTL implementation to the classpath.
For example this one: http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

-tt


0

The was already added by Idea...

0

Certain jstl jars do not contain tld files in META-INF
Dirk Reske wrote:

The was already added by Idea...


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

0

Hello Dirk,

The was already added by Idea...


Note that the correct URL when JSTL in JSP 2.0 is "http://java.sun.com/jsp/jstl/core".

-tt


0

Hi Dirk,

If you have Tomcat try to find standard.jar then add it to IDEA.

T.

0

No, there is no tld in the meta-inf dir of the jstl.jar....
I'm using glassfish

0

Dirk Reske wrote:

No, there is no tld in the meta-inf dir of the jstl.jar....
I'm using glassfish


Please, use appserv-jstl.jar then

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

0

Please sign in to leave a comment.