You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by JR...@chubb.com on 2001/09/10 12:46:11 UTC
Checking for an attribute on the request
whats the easiest way of checking whether an attribute is present on the
request?
the equivalent of
<% if ( request.getAttribute( "someFlag") == null ) %>
thanks..
James
RE: Checking for an attribute on the request
Posted by Eleonora Bider <eb...@verticalnet.com>.
<logic:notPresent name="..." scope="..."> ... </logic:notPresent> =
if(param == null){...}
and <logic:present name="..." scope="...">... </logic:present> = if(param !=
null){...}
Eleonora
-----Original Message-----
From: JRender@chubb.com [mailto:JRender@chubb.com]
Sent: Mon, September 10, 2001 12:46 PM
To: struts-user@jakarta.apache.org
Subject: Checking for an attribute on the request
whats the easiest way of checking whether an attribute is present on the
request?
the equivalent of
<% if ( request.getAttribute( "someFlag") == null ) %>
thanks..
James