I have the following interface that I'm trying to read variables from:

public interface ServletMappingConstants
{
  String SECURE_PREFIX = "secure/";

  String STATIC = "static";
...
}

If my Action implements this interface, I can refer to these strings with
the OGNL expression "@[EMAIL PROTECTED]". However, I'm trying to migrate some
existing code that uses the interface as a static final:

public final static ServletMappingConstants MAPPING =
    new ServletMappingConstants() {};

If I use this, I'm unable to refer to @[EMAIL PROTECTED]@STATIC. Is there some
other expression that will allow me to retrieve values from the interface
without implementing it?

Thanks,

Matt

-- 
View this message in context: 
http://www.nabble.com/Retrieving-static-values-in-Actions-tf4308955.html#a12266708
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to