SuperMoonster
Programmer
Hello everyone,
I'm having a problem with my data here. There's a page I build with a form like this:
As you see, I show on it values that are in my request scope. The problem is that after it is submitted and the validator shows errors, it comes blank. And I don't want it to. What should I do to have them here? Why are they being lost?
Here goes the mapping for the action called and the forwarded actions:
Thanks for any help
I'm having a problem with my data here. There's a page I build with a form like this:
Code:
<html:form action="/DeterminaColecao" method="post" focus="colecao">
<table border="0" align="center">
<tr><td width="50%"> Coleção </td><td width="50%"><html:text property="colecao" value="${requestScope.col.colecao}" readonly="true"/></td></tr>
<tr><td width="50%"> Descrição </td><td width="50%"><html:text property="descricao" value="${requestScope.col.descricao}"/></td></tr>
</table><br/>
<html:hidden property="dispatch" value="erro"/>
</html:form>
<br><br><br>
<html:errors/>
As you see, I show on it values that are in my request scope. The problem is that after it is submitted and the validator shows errors, it comes blank. And I don't want it to. What should I do to have them here? Why are they being lost?
Here goes the mapping for the action called and the forwarded actions:
Code:
<action path="/DeterminaColecao"
type="auge.action.DeterminaAction"
name="addDelUpdColecaoForm"
scope="request"
validate="true"
input="/pages/colecao/colecaoDados.jsp">
<forward name="del" path="/DelColecao.do"/>
<forward name="upd" path="/UpdColecao.do"/>
</action>
<action
path="/DelColecao"
type="auge.action.DelColecaoAction"
name="addDelUpdColecaoForm"
scope="request"
validate="true"
input="/pages/colecao/colecaoDados.jsp">
<forward name="success" path="/pages/colecao/colecao.jsp"/>
<forward name="error" path="/pages/erro.jsp"/>
</action>
<action
path="/UpdColecao"
type="auge.action.UpdColecaoAction"
name="addDelUpdColecaoForm"
scope="request"
validate="true"
input="/pages/colecao/colecaoDados.jsp">
<forward name="success" path="/pages/colecao/colecao.jsp"/>
<forward name="error" path="/pages/erro.jsp"/>
</action>
Thanks for any help