struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shane Mingins <shane.ming...@assureinternational.com>
Subject RE: Accessing a static final constant from Class in JSP
Date Mon, 17 Nov 2003 23:49:36 GMT
Just a thought ... if linkEdit is only used on the JSP's for Struts would it
be better placed in the resources.properties file?

Shane

> -----Original Message-----
> From: Jimmy Emmanual [mailto:jimmye@imsi.com]
> Sent: Tuesday, 18 November 2003 12:41 p.m.
> To: 'Struts Users Mailing List'
> Subject: RE: Accessing a static final constant from Class in JSP
> 
> Import the class in your jsp, then you can directly access it.
> 
> <%@ page import="GSOPConstants"%>
> 
> -----Original Message-----
> From: Srinivas Kusunam [mailto:SNKUSUNAM@kcc.usda.gov]
> Sent: Monday, November 17, 2003 2:17 PM
> To: struts-user@jakarta.apache.org
> Subject: Accessing a static final constant from Class in JSP
> 
> 
> Hi,
>      I have a class called ProjConstants.java which is a static class with
> some static final constants here is the sample
> 
> public class GSOPConstants{
>           public static final String LINK_EDIT = "linkEdit";
> }
> 
>                How can I access this "LINK_EDIT"  constant from JSP
> without
> using scriplets???
> 
>        Any help appreciated.
> 
> Regards,
> S!
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

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


Mime
View raw message