struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Jibaly" <Abdullah.Jib...@aeroxchange.com>
Subject RE: question about jstl tag c:if
Date Tue, 26 Apr 2005 15:36:42 GMT
I'm not familiar with DynaValidatorForm but what does this give you:

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

-----Original Message-----
From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com]
Sent: Tuesday, April 26, 2005 10:15 AM
To: user@struts.apache.org
Subject: question about jstl tag c:if


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