struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Yang <kenshin...@gmail.com>
Subject [S2] accessing enum inside a Class
Date Tue, 15 Sep 2009 06:52:17 GMT
Hi
I know if I want to access an enum in JSP i can do

<s:property value="@com.my.package.MyEnum@MY_VALUE"/>

However if MyEnum is public in a class, say MyClass, how do it get the
value?

I tried
@com.my.package.MyClass.MyEnum@MY_VALUE
@com.my.package.MyClass@MyEnum@MY_VALUE
@com.my.package.MyClass@MyEnum.MY_VALUE
@com.my.package.MyClass.MyEnum.MY_VALUE

none worked.

is there a way to do it?
or its simply not permitted?

I am using Struts 2.1.8

Thanks

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