Try setting the type attribute for the <bean:define>. See http://jakarta.apache.org/struts/userGuide/struts-bean.html#define
Sri -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 11:05 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: RE: nested <logic:equal Yes I do have this only value="<%=foo%>"> it was typo "Andrew Hill" <andrew.david.hill@gri To: "Struts Users Mailing List" <[EMAIL PROTECTED]> dnode.com> cc: Subject: RE: nested <logic:equal 10/08/2002 11:01 AM Please respond to "Struts Users Mailing List" You have: value="<%="foo%>"> Shouldnt this be: value="<%=foo%>"> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 22:54 To: Struts Users Mailing List Subject: RE: nested <logic:equal <bean:define id="foo" name="resDepDTO" property= "instBilledToDate"/> <logic:greaterThan name="resDepDTO" property="installments" value="<%="foo %>"> <html:submit property="submitAction" value="Delete" disabled="true" onclick="return confirm('Do you Really want to delete the record ?');"/> </logic:greaterThan> I tried this one but am getting the method setValue(java.lang.String) in the type org.apache.struts.taglib.logic.CompareTagBase is not applicable for the arguments (java.lang.Object) "Sri Sankaran" <Sri.Sankaran@ To: "Struts Users Mailing List" <[EMAIL PROTECTED]> sas.com> cc: Subject: RE: nested <logic:equal 10/08/2002 10:37 AM Please respond to "Struts Users Mailing List" As was pointed out earlier, your if-else logic needs to be modified if(a > 0 && a < b) { do stuff } else if( a > 0) { do some other stuff } Assuming you have that.... Your JSP snippet doesn't seem to be testing 'less than b' at all. You cannot nest a tag within your value attribute. You have value="<bean:write name="resDepDTO" property="instBilledToDate"/>" To achieve this, use a bean:define and a scriptlet <bean:define id="foo" name="resDepDTO" property="instBilledToDate"/> Then your value attribute becomes value="<%=foo%>" Sri -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 10:12 AM 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:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>