you are taking this course to learn about J2EE apps?

did you even read the email i sent you on setting up min and max params
    <field name="integerValidatorField">
        <field-validator type="int">
            <param name="min">1</param>
            <param name="max">10</param>
            <message><![CDATA[ must be integer min 1 max 10 if supplied 
]]></message>
        </field-validator>
    </field>

better to get the fundamentals straight before you hire americans to work at 
min wage

Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Wed, 8 Jul 2009 15:23:53 -0700
> From: robsonsil...@gmail.com
> To: user@struts.apache.org
> Subject: Re: Struts 2 Validation
> 
> 
> People,
> 
> If someone want help me about my university project, here is my e-mail:
> robsonsil...@gmail.com . I can send to you the entire projcect. 
> 
> This project is about control of stock and MRP. I´m using Struts2, Hibernate
> and MYSQL. It is separate on three layers with MVC.
> 
> 
> 
> Robson Rodrigues wrote:
> > 
> > Hello People,
> > 
> >  
> > 
> > i´m using the struts 2 in a project and i´m with a problem on the
> > validation. When i try validate a form, the struts say the validation
> > failed, even when the field is with correct value, in addition, it is not
> > going back to the field with the old value
> > 
> >  
> > 
> > here is my struts.xml. The action is the Cliente_insert:
> > 
> >  
> > 
> > <package name="cliente" namespace="/" extends="struts-default">
> > 
> > <default-interceptor-ref name="defaultStack"/>
> > 
> >  
> > 
> > <action name="Cliente_input" >
> > 
> > <result >/cliente/inputCliente.jsp</result>
> > 
> > </action>
> > 
> > <action name="Cliente_edit" class="br.com.robson.modelo.ClienteAction"
> > method="editar">
> > 
> > <interceptor-ref name="paramsPrepareParamsStack" />
> > 
> > <result >/cliente/editCliente.jsp</result>
> > 
> > </action>
> > 
> > <action name="Cliente_list" class="br.com.robson.modelo.ClienteAction"
> > method="listar">
> > 
> > <result name="success">/cliente/listaClientes.jsp</result>
> > 
> > </action>
> > 
> > <action name="Cliente_insert" class="br.com.robson.modelo.ClienteAction"
> > method="inserir">
> > 
> > <interceptor-ref name="validationWorkflowStack"/>
> > 
> >  
> > 
> > <result name="input">/cliente/inputCliente.jsp</result>
> > 
> > <result name="success" type="redirect">Cliente_list.action</result>
> > 
> > </action>
> > 
> > <action name="Cliente_delete" class="br.com.robson.modelo.ClienteAction"
> > method="deletar">
> > 
> > <result name="success" type="redirect">Cliente_list.action</result>
> > 
> > </action>
> > 
> > <action name="Cliente_update" class="br.com.robson.modelo.ClienteAction"
> > method="atualizar">
> > 
> > <result name="success" type="redirect">Cliente_list.action</result>
> > 
> > </action>
> > 
> >  
> > 
> > </package>
> > 
> >  
> > 
> > Here is my validation archive:
> > 
> >  
> > 
> > <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
> > 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
> > 
> > <validators>
> > 
> > <!-- <field name="nome">
> > 
> > <field-validator type="required">
> > 
> > true
> > 
> > <message> O campo nome é obrigatório </message>
> > 
> > </field-validator>
> > 
> > </field> -->
> > 
> > <field name="telefone">
> > 
> > <field-validator type="required">
> > 
> > true
> > 
> > <message> O campo telefone é obrigatório </message>
> > 
> > </field-validator>
> > 
> > <field-validator type="stringlength">
> > 
> > true
> > 
> > 6
> > 
> > 14
> > 
> > <message> O campo telefone deve ter entre 6 e 14 caracteres </message>
> > 
> > </field-validator>
> > 
> > </field>
> > 
> > </validators>
> > 
> >  
> > 
> > here is my jsp:
> > 
> >  
> > 
> > <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> > 
> > pageEncoding="ISO-8859-1"%>
> > 
> > <%...@page import="br.com.robson.modelo.Cliente" %>
> > 
> > <%...@page import ="java.util.*" %>
> > 
> > <%@ taglib prefix="s" uri="/struts-tags" %>
> > 
> >  
> > 
> > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > "http://www.w3.org/TR/html4/loose.dtd";>
> > 
> > <html:html>
> > 
> > <head>
> > 
> > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> > 
> > <title>Insert title here</title>
> > 
> > <script language="javascript">
> > 
> > </script>
> > 
> > </head>
> > 
> > <body>
> > 
> > Novo Cliente
> > 
> > <s:debug/>
> > 
> >  
> > 
> > <s:form action="Cliente_insert.action" method="POST" >
> > 
> >  
> > 
> > <s:textfield name="idCli" label="Id" />
> > 
> >  
> > 
> > <s:textfield name="nome" label="Nome"/>
> > 
> >  
> > 
> > <s:textfield name="telefone" label="Ielefone"/>
> > 
> >  
> > 
> > <s:submit></s:submit>
> > 
> > </s:form>
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > </body>
> > 
> > </html:html>
> > 
> >  
> > 
> > I hope you can help me
> > 
> >  
> > 
> > Hugs!
> > 
> >  
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Struts-2-Validation-tp24382602p24400471.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009

Reply via email to