Struts + Ajax

Opa pessoal

Estou tentando colocar o Ajax numa app que utiliza Struts, mas acho que ainda está faltando alguma coisinha, se alguém puder dar uma luz aí agradeço :grin:

No dwr.xml

[code] <allow>
<create creator="struts" javascript="email">
<param name="formBean" value="sendRequestBean"/>
</create>

    &lt;create creator=&quot;struts&quot; javascript=&quot;tipoSolicitacao&quot;&gt;
        &lt;param name=&quot;formBean&quot; value=&quot;sendRequestBean&quot;/&gt;
    &lt;/create&gt;
    
    &lt;create creator=&quot;struts&quot; javascript=&quot;valor&quot;&gt;
        &lt;param name=&quot;formBean&quot; value=&quot;sendRequestBean&quot;/&gt;
    &lt;/create&gt;
&lt;/allow&gt;[/code]

O ActionForm

[code] public class sendRequestBean extends ActionForm
{
private String tipoSolicitacao;

    private String valor;

    private String tpSolicitacao;

    private String email;

    public void setEmail&#40;String email&#41;
    &#123;
        this.email = email;
    &#125;

    public String getEmail&#40;&#41;
    &#123;
        return this.email;
    &#125;

    public void setValor&#40;String valor&#41;
    &#123;
        this.valor = valor;
    &#125;

    public String getValor&#40;&#41;
    &#123;
        return this.valor;
    &#125;

    public void setTipoSolicitacao&#40;String tipoSolicitacao&#41;
    &#123;
        this.tipoSolicitacao = tipoSolicitacao;
    &#125;

    public String getTipoSolicitacao&#40;&#41;
    &#123;
        return this.tipoSolicitacao;
    &#125;

    public ActionErrors validate&#40; ActionMapping mapping, HttpServletRequest request &#41; &#123;

        ActionErrors errors = new ActionErrors&#40;&#41;;

        // Validação aqui e não no Action

      return errors;
  &#125;

&#125;[/code]

Só que estou tendo uma ClassCastException.

[quote]NetUI Warning: Unable to update expression “{actionForm.tipoSolicitacao}”. The typical cause is that the object represe
nted by the expression is not available or is the wrong type for updating. Cause: com.bea.wlw.netui.script.ExpressionUp
dateException: Exception when attempting to update the expression “{actionForm.tipoSolicitacao}” with available binding
contexts [actionForm, pageFlow, globalApp]. Root cause: java.lang.ClassCastException[/quote]

Basicamente a minha é dúvida é a se declaração no dwr.xml dos StrutsCreator (creator=“struts”) estão certos mesmo, acho que é aquilo ali que está faltando alguma coisa.