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.s...@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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to