Re: using Constants from JSTL .....

2004-07-08 Thread Rick Reumann
On Thu, 08 Jul 2004 09:43:11 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: Duh, my bad, as David mentioned the above should be ${applicationScope.. }. Sorry about that. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

RE: using Constants from JSTL .....

2004-07-08 Thread Karr, David
> -Original Message- > From: Bryan Hunt [mailto:[EMAIL PROTECTED] > > But for some reason ( my stupidity and the time of the evening ) I > cannot get this to work. > snip= > value="${scope['Constants.EMAIL_NOTIFICATIONS']"> > > =snip > > or like this > > snip= > value="${scope[${Con

Re: using Constants from JSTL .....

2004-07-08 Thread Rick Reumann
On Thu, 08 Jul 2004 13:49:11 +0200, Bryan Hunt <[EMAIL PROTECTED]> wrote: Actually I haven't seen the 'scope' property like that, but have you tried (assuming ApplicationScope)... The above should work assuming you have a Constants class that is in Application scope and Constants is eith

Re: using Constants from JSTL .....

2004-07-08 Thread Kris Schneider
It's not so bad, really ;-). For some additional background, here are a few older messages from struts-user and taglibs-user: http://marc.theaimsgroup.com/?l=struts-user&m=103790677413408&w=2 http://marc.theaimsgroup.com/?l=struts-user&m=105777660215673&w=2 http://marc.theaimsgroup.com/?l=taglibs-

Re: using Constants from JSTL .....

2004-07-08 Thread Bryan Hunt
Uh oh, I just realised that is the exact same as mine just implimented differently. Will output the string value but will not be able to be used to resolve the bean by that name. I'm giving up on JSTL constants. Nice idea ... but too expensive on my hairline. --b Rick Reumann wrote: On Wed,

Re: using Constants from JSTL .....

2004-07-08 Thread Bryan Hunt
Hmmm, that gives me no error but no result either I put in the following code to test it and just got blank screen. snip= =snip If I substitute the following line instead it works fine. This line of code ... Outputs EMAIL_NOTIFICATIONS on the screen. I think this is starting to look

Re: using Constants from JSTL .....

2004-07-07 Thread Rick Reumann
On Wed, 07 Jul 2004 20:12:02 +0200, Bryan Hunt <[EMAIL PROTECTED]> wrote: And it works fine, but really what I am trying to get here is the value of using Constants in both my Actions and my ( JSTL based ) jsp's. You need to have all your Constants in a Map that is in application scope. Kris

Re: using Constants from JSTL .....

2004-07-07 Thread Bryan Hunt
Just as an addition I can do this And it works fine, but really what I am trying to get here is the value of using Constants in both my Actions and my ( JSTL based ) jsp's. Perhaps this is just something that never occured to the writers of the JSTL spec ? --b Bryan Hunt wrote: Ok, t

using Constants from JSTL .....

2004-07-07 Thread Bryan Hunt
Ok, tearing my hair out right now and extremely confused. If you look at the Java Technology Forums you will see a rather nice little pattern that someone called evnafets has created, it allows you to use a single Constants class both in your Actions and in your JSP pages ... It uses reflection