You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by re...@grass-gmbh.de on 2003/09/22 15:16:16 UTC

Struts "greaterThen" with 2 propertys

hello,

i want to compare 2 propertys with struts.

is it possible with struts-syntax ?
<logic:greaterThen ...>

or i have to use jsp ?


Mit freundlichen Grüßen

Christian Reps, Dipl. Inf. (FH)
Web Applications


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


Re: Struts "greaterThen" with 2 propertys

Posted by Stephan Wiesner <sw...@logicline.de>.
Look here:
http://jakarta.apache.org/struts/userGuide/struts-logic.html#greaterThan

Here is an example using "equal":


<logic:equal value="aaa" parameter="option">
   aaa=aaa <br>
</logic:equal>
<logic:notEqual value="aaa" parameter="option">
   aaa!=aaa <br>
</logic:notEqual>
<hr>
<%
    String option = request.getParameter("option");
    if (option == null)
    { out.println("JSP:aaa=null");}
    else if (option.equals("aaa"))
    { out.println("JSP:aaa=aaa");}
    else { out.println("JSP:aaa!=aaa");}
%>


reps.groups@grass-gmbh.de wrote:

> hello,
> 
> i want to compare 2 propertys with struts.
> 
> is it possible with struts-syntax ?
> <logic:greaterThen ...>
> 
> or i have to use jsp ?
> 
> 
> Mit freundlichen Grüßen
> 
> Christian Reps, Dipl. Inf. (FH)
> Web Applications
> 
> 
> ---------------------------------------------------------------------
> 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