Re: Visitor field validation

2013-04-09 Thread Knuf !
'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: Tue, 9 Apr 2013 11:13:50 +0200 > > Subject: Fwd: Visito

RE: Visitor field validation

2013-04-09 Thread Martin Gainty
nt donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 9 Apr 2013 11:13:50 +0200 > Subject: Fwd: Visitor field validation > From: atsizza.k...@gmail.com > To: user@struts.apache.or

Fwd: Visitor field validation

2013-04-09 Thread Knuf !
Hello everyone! First of all, I'm completely new to the Struts framework, so please forgive me if my question is dumb or something. I'm currently working on an existing EE application which uses Struts 2.x for managing the frontend. The problem/doubt I have is the following. Suppose I have a "backi

Re: Jquery field validation

2010-12-29 Thread Mead Lai
Hello Karthick, you can use some plug-in: http://code.google.com/p/struts2-jquery/wiki/Validation or Jquery validate plug-in: http://jquery.bassistance.de/validate/demo/ Regards, Mead On Thu, Dec 30, 2010 at 2:33 PM, wrote: > > Any body tell be how to do jquery filed validation using struts 2

Jquery field validation

2010-12-29 Thread karthick.gunasekaran
Any body tell be how to do jquery filed validation using struts 2. in my form have name,email,confirm email. if the user not enter any field it will show the error message on top of the each corresponding field like "filed does not empty. if the email is not a valid it will show the error messag

Re: Field validation

2010-12-28 Thread Maurizio Cucchiara
If you want use native struts2 validation start from here [1], Remember that in order to show the error message on top you need to choose the css_xhtml theme for struts. [1] http://struts.apache.org/2.2.1/docs/validation.html 2010/12/28 : > Any One tell me how to do field validation in str

Re: Field validation

2010-12-28 Thread Jordi Fernandez
Try jQuery validation http://docs.jquery.com/Plugins/validation for client side javascript validation. On 28/12/2010 6:54, karthick.gunaseka...@wipro.com wrote: Any One tell me how to do field validation in struts 2, i need to show the error message on top of the each field not in top of the

Field validation

2010-12-27 Thread karthick.gunasekaran
Any One tell me how to do field validation in struts 2, i need to show the error message on top of the each field not in top of the screen. Thanks and Regards, Karthick G Mobile:9911597083 Please do not print this email unless it is absolutely necessary. The information contained in this

S2: Adding global error with annotation field validation

2009-10-22 Thread Oleg T.
Hi, Is it possible to add a global error as well as a field error when validating with annotations? For example if @RequiredStringValidator fails I want to be able to add a global error as well as the field error. While I know I can do it if I move my field validation into validate() method, I

Re: Stuts2 field validation problems

2009-05-29 Thread rakeshp
invalid.fieldvalue.yourpropertyname This should override the default message. Robert Stenholt Mygind wrote: > > Hi All > > I have some problems with field validation in Struts2, I am not the > most experienced in Struts2. > > > I have a form loo

Re: Stuts2 field validation problems

2009-01-16 Thread stanlick
; Personally, I almost always remove the "conversionError" as the > conversion error messages aren't necessarily helpful, and are sometimes > redundant--your mileage may vary. > > But that's why you get both messages. > > Dave > > Robert Stenholt Mygind wrote:

Re: Stuts2 field validation problems

2009-01-11 Thread Dave Newton
t that's why you get both messages. Dave Robert Stenholt Mygind wrote: Hi All I have some problems with field validation in Struts2, I am not the most experienced in Struts2. I have a form looking something like this: .. In my acrion class I have something looking like: @

Stuts2 field validation problems

2009-01-11 Thread Robert Stenholt Mygind
Hi All I have some problems with field validation in Struts2, I am not the most experienced in Struts2. I have a form looking something like this: .. In my acrion class I have something looking like: @RequiredFieldValidator(message = "Some error text", shortCircuit=true)

Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663
appings.html -Original Message- From: 928572663 [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 12:14 PM To: Struts Users Mailing List Subject: Re: [s2] Problem getting basic server side field validation to work Thanks David. So are you saying that the struts2 validation fra

RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
hat I mean. http://struts.apache.org/2.0.11.2/docs/wildcard-mappings.html -Original Message- From: 928572663 [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 12:14 PM To: Struts Users Mailing List Subject: Re: [s2] Problem getting basic server side field validation to work Thanks

Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663
- From: 928572663 [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 11:43 AM To: Struts Users Mailing List Subject: Re: [s2] Problem getting basic server side field validation to work Great - that fixed it. Follow up: supposed this Action class can serve up 10 different JSP pages, all of w

RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
] Problem getting basic server side field validation to work Great - that fixed it. Follow up: supposed this Action class can serve up 10 different JSP pages, all of which need validation. I would want the "input" result type to forward to whichever of the 10 JSPs that the user was in

Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663
Kawczynski, David Cc: Struts Users Mailing List Subject: Re: [s2] Problem getting basic server side field validation to work Thanks David for the quick reply. Is the 'input' result type used by the validation framework? My action class does not return that. Thanks, John Kawczy

RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
2] Problem getting basic server side field validation to work Thanks David for the quick reply. Is the 'input' result type used by the validation framework? My action class does not return that. Thanks, John Kawczynski, David wrote: > You need to define a of typ

Re: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663
lto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 11:02 AM To: Struts Users Mailing List Subject: [s2] Problem getting basic server side field validation to work I'm trying to do a very basic test app that demonstrates the server side field validation and am getting an exception during i

RE: [s2] Problem getting basic server side field validation to work

2008-10-21 Thread Kawczynski, David
You need to define a of type input for your action. -Original Message- From: 928572663 [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 11:02 AM To: Struts Users Mailing List Subject: [s2] Problem getting basic server side field validation to work I'm trying to do a

[s2] Problem getting basic server side field validation to work

2008-10-21 Thread 928572663
I'm trying to do a very basic test app that demonstrates the server side field validation and am getting an exception during initial JSP page rendering. The page and action work fine without the validation. Any ideas what I may be missing? I've read the confluence pages on valid

RE: Struts2 field validation and conversion

2008-02-21 Thread Rose India (http://www.roseindia.net)
Hi See the solution for RequiredFieldValidator http://www.roseindia.net/answers/viewanswers/31.html Best Regards -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 4:15 AM To: Struts Users Mailing List Subject: Re: Struts2 field

Re: Struts2 field validation and conversion

2008-02-19 Thread Jeromy Evans
Filipe David Manana wrote: So my question, is the RequiredFieldValidator is applied after conversion? If conversion fails, the RequiredFieldValidator catches a blank value for the field? Yes, validation is performed on your action instance, after the parameters have all been set, which means

Struts2 field validation and conversion

2008-02-19 Thread Filipe David Manana
Hi, I am using struts 2.0.11 and I am wondering about the following: I have an action with a Long property that is using both validation and conversion (a custom converter). I have a RequiredFieldValidator and a ConversionErrorFieldValidator set for that property, as follows: @Conversion @Valida

question about ajax field validation in struts 2.1

2008-01-20 Thread Wei, Mei
Hi, In struts 2.0.11's showcase validation example (struts2-showcase-2.0.11/validation/quizAjax!input.action), it performs field validation at onblur(). I downloaded struts2.1, this validation example does not do field validation at onblur() any more. And I can not find ajax template i

Cross Field Validation

2007-07-02 Thread Petzsch, Martin
Hi, I'm looking for an example of cross-field validation; preferably using annotations. I have the following on my action: @Validations( expressions={ @ExpressionValidator(expression="data.key eq 'd

Re: email field validation in struts-2

2007-06-04 Thread Martin Gainty
- From: "Leena Borle" <[EMAIL PROTECTED]> To: Sent: Monday, June 04, 2007 8:02 PM Subject: email field validation in struts-2 Hi, I have just started learning Struts-2. I am using sruts2-blank application on Tomcat server. I added email field in login file. Problem I have

Re: email field validation in struts-2

2007-06-04 Thread Jeromy Evans
Property names are case sensitive. Your property name is "userEmail" not useremail public void setUserEmail(String userEmail) (wrong) The params interceptor will try to call setUseremail(String). As this doesn't exist userEmail is null. (wrong) The validator will be calling

email field validation in struts-2

2007-06-04 Thread Leena Borle
Hi, I have just started learning Struts-2. I am using sruts2-blank application on Tomcat server. I added email field in login file. Problem I have is validation is failing. Even if I put email address in email field, framework comes back with the error message from my validation.XML file(Email fi

Visitor field validation with dynamic context

2007-06-01 Thread aniruddha
Hi, I am using struts2 for my application. While validating a User say in User-validation.xml, I want to use the visitor field validation in the following way. <param name="appendPrefix">true</param> <param name=&qu

[s2] mutiline/collection field validation

2007-01-16 Thread Tim Azzopardi
hen I use visitor validation (not sure if its me or struts 2.0.1) and (b) the syntax of that approach in my case is far from obvious). Is there a way of using the struts2 field validation framework with fields like this? -- View this message in context: http://www.nabble.com/-s2--mutili

Form field validation - best practices

2006-10-03 Thread Duane Rosengartner
In our application, the implementation for error message handling is: using a HashMap for error messages with the form propertyName as the key. This prevents duplicate messages for form fields. Taking one example use-case: zipCode, rules are: must be numeric, and must be at least 5-digits in length

AW: Re: AW: Object field validation

2006-07-05 Thread Halgurt Mustafa Ali
Hi, Thank you a lot, that is exactly the reason. I changed domain to String and it works. Regards, Halgurt -Ursprüngliche Nachricht- Von: Laurie Harper [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 4. Juli 2006 21:27 An: user@struts.apache.org Betreff: Re: AW: Object field validation

Re: AW: Object field validation

2006-07-04 Thread Laurie Harper
ient, that the value of domain was unvalid. Best regards, Halgurt -Ursprüngliche Nachricht- Von: Niall Pemberton [mailto:[EMAIL PROTECTED] Gesendet: Montag, 3. Juli 2006 20:12 An: Struts Users Mailing List Betreff: Re: Object field validation This is indicating that getTaskDefinition()

AW: Object field validation

2006-07-04 Thread Halgurt Mustafa Ali
the value of domain was unvalid. Best regards, Halgurt -Ursprüngliche Nachricht- Von: Niall Pemberton [mailto:[EMAIL PROTECTED] Gesendet: Montag, 3. Juli 2006 20:12 An: Struts Users Mailing List Betreff: Re: Object field validation This is indicating that getTaskDefinition() from yo

Re: Object field validation

2006-07-03 Thread Niall Pemberton
Halgurt -Ursprüngliche Nachricht- Von: Halgurt Mustafa Ali Gesendet: Freitag, 30. Juni 2006 13:04 An: Struts Users Mailing List Betreff: AW: Object field validation Hi, Sorry, I tried that also, but it seems not to work, I am not sure if it is possible to validate fields von obj

AW: Object field validation

2006-07-03 Thread Halgurt Mustafa Ali
his type. Is there any way to do such a validation? I appreciate your help :-) thanks a lot, Halgurt -Ursprüngliche Nachricht- Von: Halgurt Mustafa Ali Gesendet: Freitag, 30. Juni 2006 13:04 An: Struts Users Mailing List Betreff: AW: Object field validation Hi, Sorry, I tried that also,

AW: Object field validation

2006-06-30 Thread Halgurt Mustafa Ali
Users Mailing List Betreff: Re: Object field validation Try Hope this may help. Halgurt Mustafa Ali wrote: > Hi all, > > I have a form called TASKMANAGERform and in this form I have a fie

Re: Object field validation

2006-06-30 Thread Truong Xuan Tinh
Try Hope this may help. Halgurt Mustafa Ali wrote: > Hi all, > > I have a form called TASKMANAGERform and in this form I have a field called > taskDefinition of type TaskDefinition. TaskDefinition has a f

Object field validation

2006-06-30 Thread Halgurt Mustafa Ali
Hi all, I have a form called TASKMANAGERform and in this form I have a field called taskDefinition of type TaskDefinition. TaskDefinition has a field domain of type Integer. Is it possible to validate this field? I meen to validate taskDefinition.domain? If aes, in which way? I have tried this:

Re: Change field validation order

2006-06-21 Thread Paul Benedict
Validation occurs in order of the properties specified, with the specific validators (required, maxcheck) occuring in the order listed. [EMAIL PROTECTED] wrote: I need some help! I'm using the validation framework to validate on client side. I'm seeking a way to change the field valida

Change field validation order

2006-06-21 Thread finndanvar
I need some help! I'm using the validation framework to validate on client side. I'm seeking a way to change the field validation order on client side. I want to validate in field order. F.ex. in the case below I want username to be validated OK for both re

Change field validation order

2006-06-19 Thread finndanvar
Hi James Help! I'm seeking a way to change the field validation order on client side. I want to validate in field order. F.ex. in the case below I want username to be validated OK for both required and maxlength before password and other fields are validated for wha

AW: unique field validation

2005-05-05 Thread Leon Rosenberg
Sorry, but what exactly you mean by "unique" validation? > -Ursprüngliche Nachricht- > Von: Nathan Coast [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 5. Mai 2005 13:58 > An: Struts Users Mailing List > Betreff: Re: unique field validation > > than

AW: unique field validation

2005-05-05 Thread Leon Rosenberg
Sorry, but what exactly you mean by "unique" validation? > -Ursprüngliche Nachricht- > Von: Nathan Coast [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 5. Mai 2005 13:58 > An: Struts Users Mailing List > Betreff: Re: unique field validation > > than

Re: unique field validation

2005-05-05 Thread Nathan Coast
user Betreff: unique field validation Hi, Is there a standard way to handle validations that can only occur server-side? e.g. unique fields. I'm guessing you don't have to include the unique validation in any of your validation configuration. Is it simply a case of overriding the vali

Re: unique field validation

2005-05-05 Thread Leon Rosenberg
cht- > Von: Nathan Coast [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 5. Mai 2005 10:43 > An: struts-user > Betreff: unique field validation > > Hi, > > Is there a standard way to handle validations that can only > occur server-side? e.g. unique fields. >

Re: unique field validation

2005-05-05 Thread Leon Rosenberg
cht- > Von: Nathan Coast [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 5. Mai 2005 10:43 > An: struts-user > Betreff: unique field validation > > Hi, > > Is there a standard way to handle validations that can only > occur server-side? e.g. unique fields. >

unique field validation

2005-05-05 Thread Nathan Coast
Hi, Is there a standard way to handle validations that can only occur server-side? e.g. unique fields. I'm guessing you don't have to include the unique validation in any of your validation configuration. Is it simply a case of overriding the validate method in my action form? public ActionErr

Time field validation

2005-02-21 Thread Lucas Húngaro
Hi everyone. I need a way to validate a time field in a jsp page using the Struts framework... I've already did it with dates and other formats, but I'm searching for a way to validate time fields and found nothing. The form have two time fields, and the format is HH:mm:ss. If anyone can help me

Re: Date Time field validation

2004-05-17 Thread Ivan
st" <[EMAIL PROTECTED]> Sent: Monday, May 17, 2004 2:52 PM Subject: Re: Date Time field validation > I'm not sure if this will help but how about escaping the forward > slashes; > > ^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}$ > > you may have to escape the backslashes as

Re: Date Time field validation

2004-05-17 Thread Dean A. Hoover
I'm not sure if this will help but how about escaping the forward slashes; ^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}$ you may have to escape the backslashes as well (you have to do this when constructing a RE in C: ^\\d{2}\\/\\d{2}\\/\\d{4} \\d{2}:\\d{2}$ don't know about javascript... just a thought. Dean

Date Time field validation

2004-05-17 Thread Ivan
Hi, I have a form field representing a date in the format dd/MM/ HH:mm (14/05/2004 13:03) My problem is that validator cannot handle time in its date validations rutines. Neither using mask validation with the regular expression ^\d{2}/\d{2}/\d{4} \d{2}:\d{2}$ works, because it throw a jav