Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page comes blank after validator gets error. Where's my data?

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
Hello everyone,

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top