You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ivan Rodriguez <iv...@interd4u.com> on 2005/07/04 16:43:03 UTC
Re: swith to struts-el
<c:if test="${myForm.sex eq 'F'}">
Dewitte Rémi escribió:
>I'd like to switch all my callic struts tags to struts-el in order to not mix
>all tags. How do you switch logic.equal to c:if ?
>For example :
><logic:equal name="myForm" property="sex" value="F">
>
>Thanks again...
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: swith to struts-el
Posted by Martin Gainty <mg...@hotmail.com>.
are you sure your variable is defined ?
for example
<%
boolean b = true;
pageContext.setAttribute("b",new Boolean(b));
%>
<c:if test="">
b is TRUE
</c:if>
Take a look at
http://www.caucho.com/resin-3.0/jsp/el.xtp
HTH,
Martin-
----- Original Message -----
From: "Dewitte Rémi" <re...@gide.net>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, July 04, 2005 12:50 PM
Subject: Re: swith to struts-el
Hum, I tried :
Unable to find a value for "sex" in object of class
"org.apache.struts.validator.LazyValidatorForm" using operator "." (null)
Indeed, it's a DynaBean.
Have an idea ?
Le Lundi 4 Juillet 2005 16:43, Ivan Rodriguez a écrit :
> <c:if test="${myForm.sex eq 'F'}">
>
> Dewitte Rémi escribió:
> >I'd like to switch all my callic struts tags to struts-el in order to not
> > mix all tags. How do you switch logic.equal to c:if ?
> >For example :
> ><logic:equal name="myForm" property="sex" value="F">
> >
> >Thanks again...
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: swith to struts-el
Posted by Dewitte Rémi <re...@gide.net>.
That's it !
Thanks !
Le Lundi 4 Juillet 2005 17:03, Wendy Smoak a écrit :
> From: "Dewitte Rémi" <re...@gide.net>
>
> > Hum, I tried :
> > Unable to find a value for "sex" in object of class
> > "org.apache.struts.validator.LazyValidatorForm" using operator "." (null)
> > Indeed, it's a DynaBean.
>
> http://struts.apache.org/userGuide/building_controller.html#dyna_action_for
>m_classes
>
> Try: <c:if test="${myForm.map.sex eq 'F'}">
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: swith to struts-el
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Dewitte Rémi" <re...@gide.net>
> Hum, I tried :
> Unable to find a value for "sex" in object of class
> "org.apache.struts.validator.LazyValidatorForm" using operator "." (null)
> Indeed, it's a DynaBean.
http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes
Try: <c:if test="${myForm.map.sex eq 'F'}">
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: swith to struts-el
Posted by Dewitte Rémi <re...@gide.net>.
I have no error but it doesn't work.
Thanks for your answer anyway.
Le Lundi 4 Juillet 2005 17:30, Ivan Rodriguez a écrit :
> So if it doesnt work for you, try
>
> <c:if test="${sex eq 'F'}">
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: swith to struts-el
Posted by Ivan Rodriguez <iv...@interd4u.com>.
So if it doesnt work for you, try
<c:if test="${sex eq 'F'}">
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: swith to struts-el
Posted by Dewitte Rémi <re...@gide.net>.
Hum, I tried :
Unable to find a value for "sex" in object of class
"org.apache.struts.validator.LazyValidatorForm" using operator "." (null)
Indeed, it's a DynaBean.
Have an idea ?
Le Lundi 4 Juillet 2005 16:43, Ivan Rodriguez a écrit :
> <c:if test="${myForm.sex eq 'F'}">
>
> Dewitte Rémi escribió:
> >I'd like to switch all my callic struts tags to struts-el in order to not
> > mix all tags. How do you switch logic.equal to c:if ?
> >For example :
> ><logic:equal name="myForm" property="sex" value="F">
> >
> >Thanks again...
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org