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
On Today at 2:24pm, MC=>Marsh-Bourdon, Christopher This is my way of doing this, and it may be a tad crap. In the page MC> tag at the top of the JSP I add one or more imports like so: MC> MC> <%@ page language="java" import="com.marsh-bourdon.Constants" %> MC> MC> I then just refer to the cons

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
This is my way of doing this, and it may be a tad crap. In the page tag at the top of the JSP I add one or more imports like so: <%@ page language="java" import="com.marsh-bourdon.Constants" %> I then just refer to the constants within the page like so: <%= Constants.KEY_FOR_SOMETHING %> This