You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vijay K Hegde <Vi...@infosys.com> on 2003/07/17 16:46:49 UTC

logic:equal

Hi All,

  How do i use a static attribute of a class and compare with a value="N"
SystemConstants.VIEW 
<%@page import="com.tgt.utility.SystemConstants"%>

<logic:equal property="SystemConstants.VIEW" value="N" >  
			  <A HREF="javascript:posCashier()"><img
			  src="<%=context%>/images/btn_cashier_message.gif" border="0"></A>
</logic:equal>

Vijay K. Hegde



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


Re: logic:equal

Posted by Nicolas De Loof <ni...@cgey.com>.
You can try this :

<bean:define id="constantValue" value="<%= SystemConstants.VIEW %>" type="String"/>

<logic:equal name="constantValue" property="N">
...


If you cahnge VIEW value, be carreful that your will have to force JSP recompilation because  final static (constant)
value will be compiled inline in generated servlet.

Nico.


----- Original Message ----- 
From: "Vijay K Hegde" <Vi...@infosys.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, July 17, 2003 4:46 PM
Subject: logic:equal


Hi All,

  How do i use a static attribute of a class and compare with a value="N"
SystemConstants.VIEW
<%@page import="com.tgt.utility.SystemConstants"%>

<logic:equal property="SystemConstants.VIEW" value="N" >
  <A HREF="javascript:posCashier()"><img
  src="<%=context%>/images/btn_cashier_message.gif" border="0"></A>
</logic:equal>

Vijay K. Hegde



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


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