Vita Rara: A Life Uncommon

Re: Limited Time

What I actually meant was to have a getter and setter for your VRContext, and let OGNL set the properties for you (be it that there might be some limitations). What do you mean by "it's just a map" ? Do you mean you have a Map property in your VRContext object ? Or do you extend it ? If you extend it, you might have to rely on type conversion to get the values set correctly - I know, this can be tricky.

Well, the validation can be field based - but you can just as well do any validation you want (eg. checking if a user isn't posting twice in 10 seconds, see if a user belongs to a certain user group, or check if the weather forecast is 'sunny and hot' - you get the point), except these last checks will be actionErrors rather than fieldErrors.

Using Groovy actions with S2 is a very good idea, and something I plan on doing as well. Keep those Struts 2 entries coming ! ;-)

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options