Hi, 

I'm trying to use Nested Properties in a Form but when I try to submit,
I get a "No Bean specified Exception".

I supose everything is well configured:

struts-config.xml
------- 
......
   <form-bean name="CadastroForm"
type="br.com.pcltda.controller.forms.CadastroForm" />
......
    <action input="/CadastroForm.jsp" name="CadastroForm"
path="/CadastroEdit" scope="request"
type="br.com.pcltda.controller.actions.edit.CadastroEditAction"
validate="false">
      <forward name="Success" path="/CadastroAction.do" redirect="false"
/>
      <forward name="Cancel" path="/main.jsp" redirect="false" />
      <forward name="Login" path="/Login.jsp?target=/CadastroEdit.do"
redirect="false" />
      <forward name="Prepare" path="/CadastroForm.jsp" redirect="false"
/>
----------

CadastroForm.jsp
-------------
.......
<html:form name="CadastroForm"
        type="br.com.pcltda.controller.forms.CadastroForm"
        action="/CadastroEdit" onsubmit="bCancel=false;">
.......
<nested:nest property="endereco">
        <nested:text property="pais"  size="3" maxlength="2" />
                </nested:nest>
.....

The Form Bean has a propety "Endereco" which is another bean that has a
property "pais", so I can do a CadastroForm.getEndereco().getPais().
This is working fine in the "execute" method of the CadastroEdit Action
(before the form is rendered). 

I don't have any clue about what I'm doing wrong. I've spent a whole
week before bother you guys with this problem, but now I'm giving up.
Could you please help me ?




Reply via email to