Ok , I admit I may have lost the plot somewhat/somewhere ... but am I
on the right track at all here ? Also I just signed up to the list and
caught the last post about VO but the answers aren't archived anywhere
yet. Would appreciate if someone forwarded me that conversation.

In my struts-config.xml file 

<form-bean name="updateProfileForm" type="ie.jestate.input.ProfileDTO">
      <form-property name="username" type="java.lang.String" />
</form-bean>

In my strutstestcase class .... 

ProfileDTO profileDTO = new ProfileDTO();
        
profileDTO.setUsername("bryanhunt");

BeanValidatorForm beanValidatorForm = new BeanValidatorForm(profileDTO);
        
setActionForm(beanValidatorForm);
        
actionPerform();

and in the action itself ... 

BeanValidatorForm beanValidatorForm = (BeanValidatorForm) form;
        
logger.debug(form);
        
WrapDynaBean bean = (WrapDynaBean) beanValidatorForm.getInstance();
logger.debug(bean.getInstance());

but the username field is null ...... 

Am I on anything like the right path here ? I want to pass the POJO
straight to my service layer after struts validation. I know this
stuff has just been added in so I'm not really finding much
documentation on it.

If anyone can point me in the right direction I would be happy to add
a page to the wiki.

Thanks 

Bryan Hunt
-- 
http://www.revoltingdigits.com
https://www.jestate.dev.java.net

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

Reply via email to