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!

how to access attributes in request obj using jstl

843838Nov 14 2005 — edited Nov 14 2005
Hi,

I would like to use <c:if> to test if a request.getAttribute("name") is null. I know how to check for the getParameter by using

<c:if test="${param.name != null >

but if the name was not saved by request.setParameter("name", value) instead, it was saved by request.setAttribute("name", value). How should I check if that attritue is null ?

Thanks a lot.
cc
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2005
Added on Nov 14 2005
1 comment
368 views