struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jimmy Emmanual <jim...@imsi.com>
Subject RE: Accessing a static final constant from Class in JSP
Date Mon, 17 Nov 2003 23:41:19 GMT
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


Mime
View raw message