Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Dave Newton
J Gotsch wrote: > I guess my problem is larger than using an if/else statement. This much is certainly true ;) > I figured how to do that, but I'm iterating over a List in the JSP, and want > to be able to exit the loop whenever certain item exist. I don't suppose > there's a way to do that, i

Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Jorge Martín Cuervo
Filter the List before sent to jsp, can you do it? or you must do it in jsp? you can implement your own custom tag extending iterate. Other solution is to define a variable in jsp with c:set when you found and item, and only print when variable isn't set or false. Take a look to jstl common tag

Re: Conditional Statements (if/else) Using logic tag

2006-05-14 Thread J Gotsch
I guess my problem is larger than using an if/else statement. I figured how to do that, but I'm iterating over a List in the JSP, and want to be able to exit the loop whenever certain item exist. I don't suppose there's a way to do that, is there? My requirement in a nutshell: the List cou

Re: Conditional Statements (if/else) Using logic tag

2006-05-13 Thread Philihp Busby
Jerome is referring to tags in the JSTL Core tag library. mmm code-bloat. On 5/14/06, J Gotsch <[EMAIL PROTECTED]> wrote: Which package does this belong to? I can't find it anywhere. Jerome Gagner <[EMAIL PROTECTED]> wrote: use On 5/13/06, J Gotsch wrote: > Hello All, > > How do I

Re: Conditional Statements (if/else) Using logic tag

2006-05-13 Thread J Gotsch
Which package does this belong to? I can't find it anywhere. Jerome Gagner <[EMAIL PROTECTED]> wrote: use On 5/13/06, J Gotsch wrote: > Hello All, > > How do I perform an If/else with ? > > In the below logic:iterate tag, If my collection contains both ROLE1 AND > ROLE2, Then both statem

Re: Conditional Statements (if/else) Using logic tag

2006-05-13 Thread Jerome Gagner
use On 5/13/06, J Gotsch <[EMAIL PROTECTED]> wrote: Hello All, How do I perform an If/else with ? In the below logic:iterate tag, If my collection contains both ROLE1 AND ROLE2, Then both statements will be displayed. And that's now what I want. I want to implement something like thi

Conditional Statements (if/else) Using logic tag

2006-05-13 Thread J Gotsch
Hello All, How do I perform an If/else with ? In the below logic:iterate tag, If my collection contains both ROLE1 AND ROLE2, Then both statements will be displayed. And that's now what I want. I want to implement something like this: if(securityRoleName.equals("ROLE1"))