<struts:if test= '%{testbean.test} ' > is </struts:if>
<struts:else> No </struts:else>
Other wording:
Equals
<s:if test="User.username eq \" a\ "">
<s:if test="user.username==\" a\ "">
<s:if test=' user.username eq "a" '>
Less than
<s:if test="user.age lt 0"> less than 0</s:if>
Or
<s:if test="Null==list2 or 0==list2.size"> is empty </s:if>
<struts:iterator value= "Testlst" >
<div>
<struts:property value= "Test"/>
</div>
</struts:iterator>
<select id= "XX" >
<struts:iterator value= "Types" >
<option value= "<struts:property value=" key "/>" ><struts:property value= "value"/></option>
</struts:iterator>
</select>
$ ("#selectid option:selected"). Val ()
$ ("#selectid option:selected"). Text ()
$ ("#selectid"). Val ("Pxx")
$ ("#selectid"). Find ("option[text= ' xx ']"). attr ("selected", true)
$ ("#selectid"). Val ()
$ ("#selectid"). Find ("option:selected"). Text ();
Javascript+struts2 Sample Summary