RE: what's the best way to have an if/else clause?

2004-04-02 Thread Butash, Bob
Jay,

JSTL is packaged with the Struts 1.1 release.  So you should have the jar
file availablejust pull it into the web-inf\lib.

I also prefer to make sure my application has the complete library set.

Hope this works for youif you need any points be more than willing to
assist.

-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 10:39 AM
To: 'Struts Users Mailing List'
Subject: RE: what's the best way to have an if/else clause?


> If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in
> support JSTL in JSP. You wont have to add any libraries. 

I've taken the attitude not to rely on any container's library set.  It
doesn't make the web application very portable.  Thanks for the suggest,
none the less.

JDG

--
Jay Glanville


-
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]



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Qureshi, Affan
That is always neat. But note that its part of the JSP 2.0 Spec as well but 
unfortunately only Tomcat 5.0 implements that currently. So really its not container 
specific. 

Thanks.

-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 9:39 AM
To: 'Struts Users Mailing List'
Subject: RE: what's the best way to have an if/else clause?


> If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in 
> support JSTL in JSP. You wont have to add any libraries. 

I've taken the attitude not to rely on any container's library set.  It
doesn't make the web application very portable.  Thanks for the suggest,
none the less.

JDG

--
Jay Glanville


-
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]



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Jay Glanville
> If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in 
> support JSTL in JSP. You wont have to add any libraries. 

I've taken the attitude not to rely on any container's library set.  It
doesn't make the web application very portable.  Thanks for the suggest,
none the less.

JDG

--
Jay Glanville


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Qureshi, Affan
If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in support JSTL in JSP. You 
wont have to add any libraries. 

-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 9:29 AM
To: 'Struts Users Mailing List'
Subject: RE: what's the best way to have an if/else clause?


It is an option that I didn't realize I had.  Up to now, we've been
using the struts tag library almost exclusively, as, up to now, it's
provided us with all the JSP functionality we've needed.  This situation
my provide the impetus to add JSTL to our libraries.

Thanks

JDG

--
Jay Glanville


> -Original Message-
> From: Butash, Bob [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 10:19 AM
> To: 'Struts Users Mailing List'
> Subject: RE: what's the best way to have an if/else clause?
> 
> 
> Jay,
> 
> Have you looked into JSTL's choose tag?
> 
> 
> 
>   
>   
>   
>   
>   
> 
> 
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Hope this helps
> 
> -Original Message-
> From: Glanville, Jay [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: what's the best way to have an if/else clause?
> 
> 
> I want to iterate over a set of beans, creating widget A if 
> property is set,
> widget B if not.  Therefore, I'm looking for an "if/else" 
> structure.  The
> closest thing I can find is  and .  I'm
> assuming that there is no straight forward way to implement 
> an 'else' clause
> in tags, so I'm thinking that I need to so something like the 
> following:
> 
>  property="tableDesc.batchAction" 
> id="element" >
>   
> 
>   
>   
> 
>   
> 
> 
> Basically, to implement the else clause by performing a 
> second if statement.
> 
> Is this the correct way to do things?  Is there a better way? 
>  Would I be
> better off using scriptlet code?
> 
> JDG
> 
> --
> Jay Glanville
> 
> -
> 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]
> 


-
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]



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Jay Glanville
It is an option that I didn't realize I had.  Up to now, we've been
using the struts tag library almost exclusively, as, up to now, it's
provided us with all the JSP functionality we've needed.  This situation
my provide the impetus to add JSTL to our libraries.

Thanks

JDG

--
Jay Glanville


> -Original Message-
> From: Butash, Bob [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 10:19 AM
> To: 'Struts Users Mailing List'
> Subject: RE: what's the best way to have an if/else clause?
> 
> 
> Jay,
> 
> Have you looked into JSTL's choose tag?
> 
> 
> 
>   
>   
>   
>   
>   
> 
> 
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Hope this helps
> 
> -Original Message-
> From: Glanville, Jay [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 02, 2004 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: what's the best way to have an if/else clause?
> 
> 
> I want to iterate over a set of beans, creating widget A if 
> property is set,
> widget B if not.  Therefore, I'm looking for an "if/else" 
> structure.  The
> closest thing I can find is  and .  I'm
> assuming that there is no straight forward way to implement 
> an 'else' clause
> in tags, so I'm thinking that I need to so something like the 
> following:
> 
>  property="tableDesc.batchAction" 
> id="element" >
>   
> 
>   
>   
> 
>   
> 
> 
> Basically, to implement the else clause by performing a 
> second if statement.
> 
> Is this the correct way to do things?  Is there a better way? 
>  Would I be
> better off using scriptlet code?
> 
> JDG
> 
> --
> Jay Glanville
> 
> -
> 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]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: what's the best way to have an if/else clause?

2004-04-02 Thread Butash, Bob
Jay,

Have you looked into JSTL's choose tag?




















Hope this helps

-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 10:10 AM
To: [EMAIL PROTECTED]
Subject: what's the best way to have an if/else clause?


I want to iterate over a set of beans, creating widget A if property is set,
widget B if not.  Therefore, I'm looking for an "if/else" structure.  The
closest thing I can find is  and .  I'm
assuming that there is no straight forward way to implement an 'else' clause
in tags, so I'm thinking that I need to so something like the following:


  

  
  

  


Basically, to implement the else clause by performing a second if statement.

Is this the correct way to do things?  Is there a better way?  Would I be
better off using scriptlet code?

JDG

--
Jay Glanville

-
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]