struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <christal...@yahoo.fr>
Subject Re: about struts-examples apache/struts-examples -> bean-validation example
Date Thu, 03 Sep 2015 09:37:48 GMT
Hello, 

The bean-validation example works now, after adding jboss-logging-3.1.1.GA.jar

I didn't know I could use a jboss file jar with only Netbeans 7.3 and Apache Tomcat 7.0.34.So
the java jar file influence the validation and the message errors directly on html page. 


PS : with the exclude_parameters example, the errors messages are not in the same files
=======================================
exclude_parameters :
EditAction.properties
personBean.firstName=First name

EditAction-validation.xml
<validators>
 <validator type="requiredstring">
     <param name="fieldname">personBean.firstName</param>
     <message>First name is required.</message>
 </validator>

===================================

bean-validation ( All is in EditAction.properties ) 

EditAction.properties
personBean.firstName=First name
firstName.required=You must enter the first name===============================================

Regards,

Chris



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message