I'm not sure what you mean by verifying if that works.


I checked the 1.2.4 distribution of Struts, and they have an example of this in 
the struts-example.war, in html-setters.jsp. I can also put together an 
application demonstrating this.



What they actually do is something like: <html&#58;text 
property="nested.doubleProperty"/>which translates into the input element.



One thing is that Struts does not seem to initialize the "nested" property of 
the form, before setting its values from the request. So you would need a 
getter like:



public TestBean getNested&#40;&#41; &#123;

&nbsp; if &#40;nested == null&#41;

&nbsp; &nbsp; nested = new TestBean&#40;&#41;;

&nbsp; return nested;

&#125;



This is not a problem though, if the form is in the session, and is first 
initialized by the controller. But my guess is that the above getter is fairly 
easy to generate automatically. (Although, it is not needed for e.g. 
java.lang.Long, so what makes TestBean special, so that it needs this kind of 
getter? :? ... probably the fact that it is being used nested?)
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2382#2382
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to