struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shreyas, Kumar" <Kumar.Shre...@hpsglobal.com>
Subject RE: nested <logic:equal
Date Tue, 08 Oct 2002 14:21:17 GMT
Try this.....


<INPUT type = submit .....   

<% if (condition) { %> 
disabled 
<% } %>

>



> -----Original Message-----
> From:	nirdesh.mohan@highmark.com [SMTP:nirdesh.mohan@highmark.com]
> Sent:	Tuesday, October 08, 2002 7:42 PM
> To:	Struts Users Mailing List
> Cc:	'Struts Users Mailing List'
> Subject:	nested <logic:equal
> 
> 
> Hi guys,
> 
> I am just wondering if any one of you help me out in writing following
> code...
> 
> Here is my problem
> 
> 
> if(a>0)
>      then make this button enable
> else if(a>0 &&a<B)
>      then make this button disabled
> 
> 
> 
> <logic:equal name="resDepDTO" property="instBilledToDate" value="0">
>     <html:submit property="submitAction" value="Delete" onclick="return
> confirm('Do you Really want to delete the
>      record ?');" />
> </logic:equal>
> <logic:greaterThan name="resDepDTO" property="instBilledToDate" value="0">
>      <logic:greaterThan name="resDepDTO" property="installments" value="<
> bean:write name="resDepDTO" property=
>                     "instBilledToDate"/>">
>           <html:submit property="submitAction" value="Delete" disabled=
> "true" onclick="return confirm('Do you Really want to delete the record
> ?');"/>
>      </logic:greaterThan>
> </logic:greaterThan>
> 
> Thanks,
> Nirdesh
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message