Spring struts and forms
        Posted  
        
            by Kiva
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Kiva
        
        
        
        Published on 2010-04-15T08:17:30Z
        Indexed on 
            2010/04/15
            8:53 UTC
        
        
        Read the original article
        Hit count: 353
        
Hi guy,
I need to integrate struts with spring for a project.
I read the doc to ingrate struts and it's ok for classic beans but I have a problem for my forms.
I have a form like this in my struts-config.xml:
  <form-beans>
<form-bean name="creationForm" type="org.apache.struts.validator.DynaValidatorActionForm" >
  <form-property name="libelle" type="java.lang.String" />
  <form-property name="quantite" type="java.lang.String" />
  <form-property name="prix" type="java.lang.String" initial="10" />
</form-bean>
But it's strange for me to have a "type" in struts-config because it's spring which manages beans.
I don't found anything in the doc to manage forms by spring and the attribute "type" is mandatory for form in struts-config.
Someone can help me please ?
© Stack Overflow or respective owner