Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL c:out request attribute

843838Sep 11 2006 — edited Mar 31 2008
I am trying to access request attributes using the JSTL out tag. I could do it using request.getAttribute() in a scriptlet but I am trying to stick to tags to ease the pain the web designer has to endure. If my attribute is simple, like 'title' then everything works fine when I do this:
<c:out value="${title}"/>
But when I properly name them as the ServletRequest Javadoc suggests, using the package name, I get no output.
<c:out value="${foo.package.name.title}"/>
THIS does work, so I didn't screw up setting the attribute or anything:
<% out.println(request.getAttribute("foo.package.name.title")); %>
What's up with that? Since I am using Spring, Models are put into the Attributes, so I have to be able to access them using jstl's out tag.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2008
Added on Sep 11 2006
6 comments
4,779 views