Did you try to import your Constants class?

<%@ page import="com.company.Constants" %>

<s:property value="@[EMAIL PROTECTED]" />

As far as say C.staticconstant1, all I can really say is that the @
symbol is how you access static vars/methods in OGNL. 

Another choice might be to use regular ol' EL expressions. 

-Wes

On Tue, 2008-04-29 at 21:45 -0700, ravi_eze wrote:
> hi,
> 
> 
> Does the following work - 
> 
> <s:set name="C" value="@[EMAIL PROTECTED]" />
> <s:property value="#C" />
> 
> Yes it does. But my requirement is more like i would import the class into
> some bean/ variable (C) so that i can say C.staticconstant1 etc... but by
> the approach mentioned above, i should repeat the @com.company.Constant
> string always which reduces the readability. Hope this adds some clarity.
> Something similar to import.... and then say Constant....
> 
> Also, is com.company.Constants.STATIC_CONSTANTS1 a String?
> 
> Yes its a string.  i would be greatful to any further help.
> 
> 
> cheers,
> ravi 


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

Reply via email to