You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohamed SIDI <mh...@gmail.com> on 2011/05/16 14:14:51 UTC
error JSTL
Hi there,
I'm using JSTL (I'm sorry if this issue is not about struts), and I have a
JSP page witch contains a JSTL code :
<c:forEach var="name"
items="${pageContext.request.attributeNames}">
Name: ${name}
Value: ${requestScope[name]}<br>
</c:forEach>
but when I want to call this page from my browser, I'm getting this error :
searchUser.jsp:25:30: Static attribute must be a String literal, its illegal
to specify an expression.
items="${pageContext.request.attributeNames}">
^---^
can someone help me
thanks
--
Cordialement
Mohamed
RE: error JSTL
Posted by Ilya Kazakevich <Il...@JetBrains.com>.
http://java.sun.com/jstl/core is JSTL 1.0 namespace
http://java.sun.com/jsp/jstl/core is JSTL 1.1 namespace
:)
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-----Original Message-----
From: Mohamed SIDI [mailto:mhm.sidi@gmail.com]
Sent: Monday, May 16, 2011 4:28 PM
To: Struts Users Mailing List
Subject: Re: error JSTL
I have resolved the problem by changing the URI, the one witch I was using
is : <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>, or the
good one would be : <%@ taglib uri="http://java.sun.com/jsp/jstl/core"
prefix="c" %>
thanks to you two for your willingness
2011/5/16 Ilya Kazakevich <Il...@jetbrains.com>
> You use JSTL 1.0 and EL is not allowed in properties there. Try to use
> newer
> version of JSTL.
>
>
> Ilya Kazakevich,
> Developer
> JetBrains Inc
> http://www.jetbrains.com
> "Develop with pleasure!"
>
> -----Original Message-----
> From: Mohamed SIDI [mailto:mhm.sidi@gmail.com]
> Sent: Monday, May 16, 2011 4:15 PM
> To: Struts Users Mailing List
> Subject: error JSTL
>
> Hi there,
>
> I'm using JSTL (I'm sorry if this issue is not about struts), and I have a
> JSP page witch contains a JSTL code :
>
> <c:forEach var="name"
> items="${pageContext.request.attributeNames}">
> Name: ${name}
> Value: ${requestScope[name]}<br>
> </c:forEach>
>
> but when I want to call this page from my browser, I'm getting this error
:
>
> searchUser.jsp:25:30: Static attribute must be a String literal, its
> illegal
> to specify an expression.
> items="${pageContext.request.attributeNames}">
> ^---^
>
>
> can someone help me
>
> thanks
> --
>
>
> Cordialement
>
> Mohamed
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Cordialement
Mohamed
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: error JSTL
Posted by Mohamed SIDI <mh...@gmail.com>.
I have resolved the problem by changing the URI, the one witch I was using
is : <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>, or the
good one would be : <%@ taglib uri="http://java.sun.com/jsp/jstl/core"
prefix="c" %>
thanks to you two for your willingness
2011/5/16 Ilya Kazakevich <Il...@jetbrains.com>
> You use JSTL 1.0 and EL is not allowed in properties there. Try to use
> newer
> version of JSTL.
>
>
> Ilya Kazakevich,
> Developer
> JetBrains Inc
> http://www.jetbrains.com
> "Develop with pleasure!"
>
> -----Original Message-----
> From: Mohamed SIDI [mailto:mhm.sidi@gmail.com]
> Sent: Monday, May 16, 2011 4:15 PM
> To: Struts Users Mailing List
> Subject: error JSTL
>
> Hi there,
>
> I'm using JSTL (I'm sorry if this issue is not about struts), and I have a
> JSP page witch contains a JSTL code :
>
> <c:forEach var="name"
> items="${pageContext.request.attributeNames}">
> Name: ${name}
> Value: ${requestScope[name]}<br>
> </c:forEach>
>
> but when I want to call this page from my browser, I'm getting this error :
>
> searchUser.jsp:25:30: Static attribute must be a String literal, its
> illegal
> to specify an expression.
> items="${pageContext.request.attributeNames}">
> ^---^
>
>
> can someone help me
>
> thanks
> --
>
>
> Cordialement
>
> Mohamed
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Cordialement
Mohamed
RE: error JSTL
Posted by Ilya Kazakevich <Il...@JetBrains.com>.
You use JSTL 1.0 and EL is not allowed in properties there. Try to use newer
version of JSTL.
Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"
-----Original Message-----
From: Mohamed SIDI [mailto:mhm.sidi@gmail.com]
Sent: Monday, May 16, 2011 4:15 PM
To: Struts Users Mailing List
Subject: error JSTL
Hi there,
I'm using JSTL (I'm sorry if this issue is not about struts), and I have a
JSP page witch contains a JSTL code :
<c:forEach var="name"
items="${pageContext.request.attributeNames}">
Name: ${name}
Value: ${requestScope[name]}<br>
</c:forEach>
but when I want to call this page from my browser, I'm getting this error :
searchUser.jsp:25:30: Static attribute must be a String literal, its illegal
to specify an expression.
items="${pageContext.request.attributeNames}">
^---^
can someone help me
thanks
--
Cordialement
Mohamed
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[OT] Re: error JSTL
Posted by Dave Newton <da...@gmail.com>.
On Mon, May 16, 2011 at 8:14 AM, Mohamed SIDI wrote:
> Static attribute must be a String literal, its illegal to specify an expression
Did you try searching the web for an answer? Sometimes just copying an
error message verbatim is enough.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org