RE: Using constants in JSP pages

2005-03-21 Thread Benedict, Paul C
: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:24 PM To: Struts Users Mailing List Subject: Re: Using constants in JSP pages I wrote a tag library to expose contants to a JSP page. Granted, it's not as portable as HashMap in the app context, but it seems to

Re: Using constants in JSP pages

2005-03-21 Thread Matt Raible
nal Message- From: Haroon Rafique [mailto:[EMAIL PROTECTED] Sent: 21 March 2005 15:20 To: Struts Users Mailing List Subject: RE: Using constants in JSP pages On Today at 2:24pm, MC=>Marsh-Bourdon, Christopher MC> This is my way of doing this, and it may be a tad crap. In the page MC> t

Re: Using constants in JSP pages

2005-03-21 Thread David Kennedy
lt;%= ... %> is undeclared or there is a typo there. That at least gives David the answer (albeit a bit of hash) David was after. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: Haroon Rafique [mailto:[EMAIL PROTECTED] Sent: 21 March 2005 15:20 To: Strut

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
.marsh-bourdon.com -Original Message- From: Haroon Rafique [mailto:[EMAIL PROTECTED] Sent: 21 March 2005 15:20 To: Struts Users Mailing List Subject: RE: Using constants in JSP pages On Today at 2:24pm, MC=>Marsh-Bourdon, Christopher This is my way of doing this, and it may be a tad crap. In

RE: Using constants in JSP pages

2005-03-21 Thread Haroon Rafique
t the compiler to spot mistakes. But with the above JSTL, you could, at least, see it in a visible manner on the JSP page that an undefined constant was used. Hope this was helpful. Cheers, MC> -Original Message- MC> From: David Kennedy [mailto:[EMAIL PROTECTED] MC> Sent: 21 Ma

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
ts.KEY_FOR_SOMETHING %> This should then be checked by your ide for typos etc. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -Original Message- From: David Kennedy [mailto:[EMAIL PROTECTED] Sent: 21 March 2005 14:18 To: Struts Users Mailing List Subject: Using constants

Using constants in JSP pages

2005-03-21 Thread David Kennedy
Most of our pages have a header/navbar which performs some highlighting of the current page's category etc. This means all pages must define beans to say things like, "My category is FOO, my sub-category is BAR" I would like to get the compiler to spot typos: (1) To make sure FOO matches one of