You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yaroslav Novytskyy <sp...@n-ix.com.ua> on 2005/05/18 11:38:19 UTC
JSTL EL replacement of logic:present tag
Hi!
Does anybody know how to write this
<logic:present name="org.apache.struts.action.ERROR">
in JSTL Expression Language?
(<c:if test="${org.apache.struts.action.ERROR}"> does not work)
I'd like to get rid of old "struts-logic" in my project and leave only
jstl's tags and "html-el".
Yaroslav Novytskyy
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: JSTL EL replacement of logic:present tag
Posted by Nicolas De Loof <ni...@capgemini.com>.
This may work :
<c:if test="${requestScope['org.apache.struts.action.ERROR']}">
But you have to know the scope where is stored the ActionMessages bean.
Struts-logic-el has some value-added over JSTL, as it can be used for
struts-related logic (like errors/messages), so why not using them ?
Logic tags having an equivalent JSTL tag are not declared in struts-el TLD.
Nico.
Yaroslav Novytskyy a écrit :
> Hi!
>
> Does anybody know how to write this
> <logic:present name="org.apache.struts.action.ERROR">
> in JSTL Expression Language?
> (<c:if test="${org.apache.struts.action.ERROR}"> does not work)
> I'd like to get rid of old "struts-logic" in my project and leave only
> jstl's tags and "html-el".
>
> Yaroslav Novytskyy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org