struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils-Helge Garli Hegvik" <nil...@gmail.com>
Subject Re: Can I put a "public final static" field in the Action, and How to read the static field in JSP page?
Date Wed, 05 Nov 2008 07:54:34 GMT
Take a look at http://struts.apache.org/2.0.12/docs/ognl-basics.html

Nils-H

On Wed, Nov 5, 2008 at 8:18 AM, Mead Lai <laiqinyi@gmail.com> wrote:
> my Action is:
> public class myAction extends BaseAction {
>      public final static String BASE_URL = "";
> }
>
> Should the "BASE_URL " declare as "private" access modifier, and add get() &
> set() in the Action?
> How to get the static field in the JSP?
> Or maybe there is any other way to get "constant" value in JSP?
> --
> BestRegards,
> Mead
> http://yayisoft.com
>
> Bill Vaughan  - "The tax collector must love poor people, he's creating so
> many of them."
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message