You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by santhosh <sa...@eximsoft.com> on 2003/04/23 15:15:19 UTC

define problem

Hello all,

My problem is as follows.

The full code is.

<bean:define id="temp" value="true" type="java.lang.String"/>.
<logic:iterate id="batchObject" name="HostCommunication" property="batchObjects"  type="jp.co.daifuku.pcm.dataobjects.BatchData" scope="request"> 
<logic:equal name="temp" value="true"> 
   <INPUT TYPE=RADIO Class="midium-black" NAME="batchNo" VALUE="<%=batchObject.getBatchNo()%>" SELECTED>
  </logic:equal>
<logic:equal name="temp" value="false">   
   <INPUT TYPE=RADIO Class="midium-black" NAME="batchNo" VALUE="<%=batchObject.getBatchNo()%>" >
  </logic:equal>
<% temp="false";  %>
</logic:iterate>

Here everything is fine except  changing the value of  temp variable. After the first iteration the value of temp variable should be "false". Thn from the scond iteration onwords it should enter second <logic:equal>  as i am checking value for "false"   But it is executing first block only.  But if i do Systsem.out.println(temp)  it is printing "false"   Is it the proper way of changing the value of the variable which is dfined using define tag??



Thanx with regds
santhosh hegde A