The "..." is exactly one line, because it's only a flag: <logic:equal condition1> <bean:define id="flag" type="java.lang.String" value="dummy" toScope="page"/> </logic:equal> <logic:equal condition2> <bean:define id="flag" type="java.lang.String" value="dummy" toScope="page"/> </logic:equal>
<logic:present name="flag"> ... do the things you need to do. </logic:present> But I fully agree that this is ugly, and should be done by a property of the bean instead: <logic:equal name="myBean" property="conditionAOrB" value="true"> ... </logic:equal> Alternatively feel free to make a nested "or" tag. > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 5. Januar 2005 10:48 > An: Struts Users Mailing List > Betreff: Re: How to implement OR functionality in STRUTS > > Neil Erdwien <neil 'at' k-state.edu> writes: > > > How about: > > > > <logic:equal ...> > > ... > > </logic:equal> > > <logic:equal ...> > > ... > > </logic:equal> > > Are you serious? When "..." is longer than say 1 or 2 lines, this > leads to duplicated source-code, one of the thing I think > programmers should avoid with the most energy. > > -- > Guillaume Cottenceau > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]