struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mead Lai" <laiqi...@gmail.com>
Subject 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:18:12 GMT
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."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message