Re: How to implement OR functionality in STRUTS

2005-01-06 Thread Janarthan Sathiamurthy
Hi Guys, Don't reinvent the wheel. I am sure this AND and OR functionality is already done by Niall pemberton. I am unable to get the link for the download though. Regards, Janarthan S Neil Erdwien <[EMAIL PROTECTED]> wrote: I agree that if the "..." is long, or if there are lots of them, then

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Neil Erdwien
I agree that if the "..." is long, or if there are lots of them, then simply repeating the code is less than ideal. On the other hand, if there are only, say, three conditions, and the code is three lines, then duplication isn't horrendous. We've all done uglier things in the push to get the j

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Pavel Kolesnikov
On 05 Jan 2005 10:47:40 +0100, Guillaume Cottenceau <[EMAIL PROTECTED]> wrote: > Neil Erdwien writes: > > > How about: > > > > > >... > > > > > >... > > > > Are you serious? When "..." is longer than say 1 or 2 lines, this Neil's answer was as well serious as

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Guillaume Cottenceau
Neil Erdwien writes: > How about: > > >... > > >... > 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 ---

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread dsarris
Hi, use JSTL. Do not spend time with the Struts tags. here is an example: Error 1 has occurred. Error 2 has occurred. Chipix On Wed, 05 Jan 2005 01:05:30 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > Look into the expression language's Logical O

Re: How to implement OR functionality in STRUTS

2005-01-04 Thread Erik Weber
Look into the expression language's Logical OR ("||") operator and the JSTL core tags (such as c:if). Possibly the OR operator would work within an EL expression using the logic:equal tag as well, but I just can't think of an example. Erik Krishna Mohan Radhakrishnan wrote: Hi all, A very simpl

RE: How to implement OR functionality in STRUTS

2005-01-04 Thread Krishna Mohan Radhakrishnan
n 7365 | Mobile: +919895532610 [EMAIL PROTECTED]| www.infosys.com -Original Message- From: Neil Erdwien [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:16 AM To: Struts Users Mailing List Subject: Re: How to implement OR functionality in ST

Re: How to implement OR functionality in STRUTS

2005-01-04 Thread Neil Erdwien
How about: ... ... BTW, you might look into the similar JSTL tags: if and choose. They will likely have a longer life than the Struts equivalents. My philosophy is to use JSTL whenever possible. Krishna Mohan Radhakrishnan wrote: Hi all, A very simple question.