: 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
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
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
.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
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
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
6 matches
Mail list logo