Well, you can use a JSP expression which strictly speaking isn't a
scriptlet.  So, after you do your import, you can use constants like

<bean:write name="<%= GSOPConstants.A_BEAN_NAME %>" property="<%=
GSOPConstants.A_BEAN_PROPERTY %>"/>

Cheers,
-Steve

-----Original Message-----
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Accessing a static final constant from Class in JSP


I don't think there is one, but maybe somone will educate me. ;-)

Why not put this in ApplicationResources and then use the <bean:message>
tag?

Larry

>>> [EMAIL PROTECTED] 11/18/03 8:31 AM >>>

which tag do u use to access the constants from the class as I don't
want to use JSP Scriplets???

Thanks,
S!

>>> [EMAIL PROTECTED] 11/17/03 05:41PM >>>
Import the class in your jsp, then you can directly access it.

<%@ page import="GSOPConstants"%>

-----Original Message-----
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 2:17 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to