• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL out with JSP expression  RSS feed

 
Anand Wadhwani
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to use a JSP expression inside JSTL out tag:

e.g.


If I replace the out tag in above snippet with following:

<c ut value="<%= pageContext.getAttribute("i") %>"/>

It should work, but it doesn't! I get following error:

Attribute i has no value

I am using WebSphere 5.0 server (JSP 1.2 specification)

Thanks much!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bearing in mind that you are extremely limited in what you can do with the JSTL and EL in a JSP 1.2 environment, if you are going to be using scriplet expressions in conjunction with the JSTL, you need to declare the 'rt' version of the JSTL URI.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!