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