so that would be <c:choose> <c:when test="${yourVar eq '1'} and/or yourVar eq '2'}"> do this </c:when> <c:when test="${yourVar eq '3' and/or yourVar eq '4'}">> do that </c:when> <c:otherwise> do something else </c:otherwise> <c:choose>
> -----Original Message----- > From: Marsh-Bourdon, Christopher > [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 14:26 > To: 'Struts Users Mailing List' > Subject: RE: Switch Tags > > > Yes, that goes some way. I missed out that I need a case to > verify several > test, something like this: > > <c:choose> > <c:when test="${yourVar eq '1'}" test2="${yourVar eq '2'}"> > do this > </c:when> > <c:when test="${yourVar eq '3'}" test2="${yourVar eq '4'}">> > do that > </c:when> > <c:otherwise> > do something else > </c:otherwise> > <c:choose> > > Christopher Marsh-Bourdon > www.marsh-bourdon.com > > > -----Original Message----- > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Sent: 09 May 2005 14:18 > To: Struts Users Mailing List > Subject: RE: Switch Tags > > > what's wrong with jstl? > > <c:choose> > <c:when test="${yourVar eq '1'}"> > do this > </c:when> > <c:when test="${yourVar eq '2'}"> > do that > </c:when> > <c:otherwise> > do something else > </c:otherwise> > <c:choose> > > > -----Original Message----- > > From: Marsh-Bourdon, Christopher > > [mailto:[EMAIL PROTECTED] > > Sent: 09 May 2005 14:14 > > To: 'Struts Users Mailing List' > > Subject: Switch Tags > > > > > > I will of course be going off to Google in a moment, but I > would like > > anyone's recommendation for a Tag(s) that enable the coder to > > perform a > > Switch/Case like function within the JSP. I could of course > > write one, but > > I'm lazy! > > > > Cheers > > > > Christopher Marsh-Bourdon > > www.marsh-bourdon.com > > ------ > > > > > > -------------------------------------------------------------- > > ------------------ > > The information contained herein is confidential and is > > intended solely for the > > addressee. Access by any other party is unauthorised without > > the express > > written permission of the sender. If you are not the intended > > recipient, please > > contact the sender either via the company switchboard on +44 > > (0)20 7623 8000, or > > via e-mail return. If you have received this e-mail in error > > or wish to read our > > e-mail disclaimer statement and monitoring policy, please refer to > > http://www.drkw.com/disc/email/ or contact the sender. 3166 > > -------------------------------------------------------------- > > ------------------ > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> > ------------------------------------------------------- > QAS Ltd. > Developers of QuickAddress Software > <a href="http://www.qas.com">www.qas.com</a> > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > ------------------------------------------------------- > </FONT> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ------ > > > -------------------------------------------------------------- > ------------------ > The information contained herein is confidential and is > intended solely for the > addressee. Access by any other party is unauthorised without > the express > written permission of the sender. If you are not the intended > recipient, please > contact the sender either via the company switchboard on +44 > (0)20 7623 8000, or > via e-mail return. If you have received this e-mail in error > or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. 3166 > -------------------------------------------------------------- > ------------------ > > > --------------------------------------------------------------------- > 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]