Vita Rara: A Life Uncommon

Limited Time

Hi Phil,

I can't say as I follow you regarding using OGNL to populate the VRContext. The purpose of the VRContext is just to have an object to pass between the controller and the various service beans that will hold multiple objects. This keeps me from having to change method signatures if I need to add some argument to the call. Also the VRContext is just a Map, with some extra methods. I have had bad luck using OGNL to set values on Maps from user input. Everything ends up being a String[].

As to XWork validation, it just limited time. I've been learning Struts 2 as I go, and have been adding various portions of its functionality to my development process over time. I have been planning on looking at the validation framework. I guess it's time. One of the reasons I haven't looked closely at it, is I thought it was mainly field based, rather than semantic. I'll have to look into it.

Thanks for the comment,

Mark

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