struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@wamu.net>
Subject RE: question about jstl tag c:if
Date Tue, 26 Apr 2005 15:38:25 GMT
>From a JavaBeans point of view, the "dyna" attributes are not attributes
of the DynaValidatorForm, they are entries in a "map" that is an
attribute of the DynaValidatorForm.  So, the following should work:

  <c:if test="${loginForm.map.singlesignon == '0'}"> </c:if>

> -----Original Message-----
> From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com] 
> 
> Hi
> I have a struts tag like below 
> <logic:equal  name="loginForm" property="singlesignon" 
> value="0"> </logic:equal> I tried to use jstl c:if tag as 
> below <c:if test="${loginForm.singlesignon == '0'}"> </c:if>
> 
> i get error 
> An error occurred while evaluating custom action
> attribute "test" with value "${loginForm.singlesignon
> == '1'}": Unable to find a value for "singlesignon" in
> object of class
> "org.apache.struts.validator.DynaValidatorForm" using
> operator "." (null)
> 
> in sturts-config.xml file i have defined
> 
> <form-bean name="loginForm" 
> type="org.apache.struts.validator.DynaValidatorForm"
> dynamic="true">
> <form-property name="singlesignon" initial="" 
> type="java.lang.String" /> </form-bean>
> 
> So how can i use this in jstl tag library
> 
> ashish
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message