Re: OT: jstl equivalent of logic:present

2004-10-08 Thread Craig McClanahan
On Sat, 09 Oct 2004 11:39:41 +1000, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > Thanks guys, > > In the end I stuck with the logic tag. But I do think this highlights a > deficiency in the JSTL tags. > > Is sun open to suggestions on this topic? I think there is a need for a > security/authoris

Re: OT: jstl equivalent of logic:present

2004-10-08 Thread Zoran Avtarovski
Thanks guys, In the end I stuck with the logic tag. But I do think this highlights a deficiency in the JSTL tags. Is sun open to suggestions on this topic? I think there is a need for a security/authorisation tagset as part of JSTL. Zoran > I couldn't find a way in JSTL/EL using the standard ta

Re: OT: jstl equivalent of logic:present

2004-10-07 Thread Jason Lea
I couldn't find a way in JSTL/EL using the standard tags. So it looks like we need a tag with that ability. In that case it probably doesn't matter if you use the logic tag or the other suggestion of the request tag. I see that the logic tag allows you to check for more than 1 role eg whereas

Re: OT: jstl equivalent of logic:present

2004-10-07 Thread Tim Penhey
Zoran Avtarovski wrote: I'm trying to find a way to use the isUserInRole method with the c:if tag. I tried But you can't use the isUserInRole method as an expression. I'd rather not have to cast the role into a page context string to test. Using the logic:present tag is more preferable. I only ask

OT: jstl equivalent of logic:present

2004-10-07 Thread Zoran Avtarovski
I'm trying to find a way to use the isUserInRole method with the c:if tag. I tried But you can't use the isUserInRole method as an expression. I'd rather not have to cast the role into a page context string to test. Using the logic:present tag is more preferable. I only ask because I get the fee

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Rick Reumann
Woodchuck wrote: ugh. i don't want to use scriptlets but it seems so much easier to. do you think it's bad to mix scriptlets with Struts and JSTL? For the most part, I think so yes. I'd use the Unstandard Tag you posted http://marc.theaimsgroup.com/?l=struts-user&m=109352654917026&w=2 (which,

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Woodchuck
hi Rick, with the help of Paul McCulloch, the best i've found so far is this: http://marc.theaimsgroup.com/?l=struts-user&m=109352654917026&w=2 it uses a tag library, which i suspect the tag is doing something similar to what you suggested initially the tag binds the static variable that you wa

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Rick Reumann
Woodchuck wrote: before i use this suggestion, would anyone else like to challenge this solution with a *more elegant* solution? ;) If you find one, let me know. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

RE: Struts or JSTL equivalent for this?

2004-08-27 Thread Paul McCulloch
There was a thread asking exactly the same question earlier in the week. Have a look in the archives. Paul > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 5:06 PM > To: Struts Users Mailing List > Subject: Re: Struts or JSTL

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Woodchuck
uck wrote: > > > how can i do the following the non-scriptlet way on my jsp page? > > > > <%@ page import="MyPackage.Constants"%> > > > > <%= Constants.BUTTON__KEY %> > > > > > > is there an elegant Struts or JSTL equivale

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Emmanouil Batsis
Of course supplying getters for your constant values would work like a charm for JSTL ;-) Rick Reumann wrote: Woodchuck wrote: how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an

Re: Struts or JSTL equivalent for this?

2004-08-27 Thread Rick Reumann
Woodchuck wrote: how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an elegant Struts or JSTL equivalent for the above? Thankfully Kris Schneider demonstrated a good way to handle thi

Struts or JSTL equivalent for this?

2004-08-27 Thread Woodchuck
how can i do the following the non-scriptlet way on my jsp page? <%@ page import="MyPackage.Constants"%> <%= Constants.BUTTON__KEY %> is there an elegant Struts or JSTL equivalent for the above? thanks in advance! _

Re: logic:present jstl equivalent?

2004-08-18 Thread Bill Siggelkow
... Dean A. Hoover wrote: I am attempting to change my application to use jstl wherever possible. Is there an equivalent in jstl for the logic:present tag? For example, I use: is there some way to do this in jstl? Thanks. Dean Hoover ---

Re: logic:present jstl equivalent?

2004-08-18 Thread Deepak
Try --Do Something --Deepak - Original Message - From: "Dean A. Hoover" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 18, 2004 1:37 PM Subject: logic:present jstl equivalent? > I am attempting to change my application to > use jstl wh

logic:present jstl equivalent?

2004-08-18 Thread Dean A. Hoover
I am attempting to change my application to use jstl wherever possible. Is there an equivalent in jstl for the logic:present tag? For example, I use: is there some way to do this in jstl? Thanks. Dean Hoover - To unsubscribe, e-ma

Re: jstl equivalent

2004-07-26 Thread Wendy Smoak
From: "Nathan Maves" <[EMAIL PROTECTED]> > Anyone have a quick replacement for the following? > > > > > > See if this helps: http://wiki.apache.org/struts/StrutsDeprecatedActionErrors -- Wendy Smoak - T

jstl equivalent

2004-07-26 Thread Nathan Maves
Anyone have a quick replacement for the following? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]