Re: Validation using validation.xml issue

2007-08-31 Thread Laurie Harper
Ashish Kulkarni wrote: Hi I have a defined following bean in struts-config.xml form-property name=color type=java.lang.String / form-property name=datereqList type=java.util.List / In my action class i set datereqList and pass it along to the jsp, the jsp displays it as drop down box, in my

Re: Validation using validation.xml issue

2007-08-31 Thread Ashish Kulkarni
Hi The error is thrown by validator frame work, and hence it never reaches action class where i can load those list again, I am not very sure how validtor framework works Ashish On 8/31/07, Laurie Harper [EMAIL PROTECTED] wrote: Ashish Kulkarni wrote: Hi I have a defined following bean in

Re: Validation chaining in struts2

2007-08-30 Thread Ted Husted
Struts 2 uses a hierarchical approach to validation which could be used to support a multi-page workflow. (Struts 1 simulates a hierarchy by using the page property on the ActionForm.) The validation follows the Java class, not the action mapping. If class2 extends class1, then when class2 is

Re: Validation chaining in struts2

2007-08-30 Thread j alex
Ted, Regarding field validations, can you provide any reason why the validwhen validator is not provided in Struts 2? . I think this is a step backwards from Struts 1 where we could easily manage conditional validation (validate fieldb only if fielda fieldc meet some condition) Also, the

Re: Validation chaining in struts2

2007-08-30 Thread Ted Husted
On 8/30/07, j alex [EMAIL PROTECTED] wrote: Regarding field validations, can you provide any reason why the validwhen validator is not provided in Struts 2? . I think this is a step backwards from Struts 1 where we could easily manage conditional validation (validate fieldb only if fielda

Re: Validation chaining in struts2

2007-08-29 Thread j alex
Sounds very similar to the problem i had but no straightforward solution yet ; i've put this for enhancement on JIRA - https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901 Can you please check if this is what you need

Re: Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey Joseph. I think thats something similar to what I am asking but I am not even quiet sure. I was also wondering what if I have a method in class and I have ClassName-methodName-validation.xml file which would validate those base things so then in struts.xml I can do

Re: Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey Joseph sorry I think I need something exactly like this: https://issues.apache.org/struts/browse/STR-443 On 8/29/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote: Hey Joseph. I think thats something similar to what I am asking but I am not even quiet sure. I was also wondering what if I have

Re: validation issues

2007-08-18 Thread Laurie Harper
Sivaswamynatha K wrote: Hello friends, I am using struts 1.2.9. In my project, I have to navigate along the five jsp pages. For each page I have one next button which updates the data to the database. During that time I have to do only mask validation and not required validation. In the fifth

Re: Validation framework... weird...

2007-07-25 Thread Laurie Harper
Balazs Michnay wrote: Dear Struts Users, I have a form with 13 form controls on it. I'd like to use the Struts Validation Framework to validate it, but it's acting weird. What I'd like to do is to have AT LEAST ONE of the controls filled, but the test of validWhen only allows simple boolean

Re: Validation dies because of request param array?

2007-07-03 Thread cilquirm
Do you have struts.devMode = true? I had the same problem and I was forced to change struts.devMode = false I believe this is a change from 2.0.6 ( and in some regards, a worse one at that ). I'm still investigating it, but please try turning devMode off and seeing if it helps. Scott

Re: Validation dies because of request param array?

2007-07-03 Thread cilquirm
I should correct myself. My problem may not be related, since it was due to the CookieInterceptor's handling of setValue. Can you post your pojo and your query string? cilquirm wrote: Do you have struts.devMode = true? I had the same problem and I was forced to change struts.devMode =

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
By making that change the error has gone away. However it is now silently dying for some other reason. I need to track that down. If I have more problems I will post the code. On 7/3/07, cilquirm [EMAIL PROTECTED] wrote: I should correct myself.

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
I am thinking that this did not solve the problem, but rather squelched the only message that gave me a clue as to what might be happening. So back to the original problem. Here is the struts config: action name=Profile class= com.ourcompany.struts.action.profile.Profile result

RE: Validation dies because of request param array?

2007-07-03 Thread Crocker, Patrick
:15 PM To: Struts Users Mailing List Subject: Re: Validation dies because of request param array? I am thinking that this did not solve the problem, but rather squelched the only message that gave me a clue as to what might be happening. So back to the original problem. Here is the struts config

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Kingdon Sent: Tuesday, July 03, 2007 3:15 PM To: Struts Users Mailing List Subject: Re: Validation dies because of request param array? I am thinking that this did not solve the problem, but rather squelched the only message

Re: Validation and XHTML

2007-06-20 Thread Niall Pemberton
On 6/20/07, lextest [EMAIL PROTECTED] wrote: Hello, We have a client using Struts 1.2.9. They are experiencing a problem when trying to use client side validation on a struts page that is using html:xhtml. It's the exact problem described in this bug report:

RE: Validation and XHTML

2007-06-20 Thread homerlex
:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 9:13 AM To: Struts Users Mailing List Subject: Re: Validation and XHTML On 6/20/07, lextest [EMAIL PROTECTED] wrote: Hello, We have a client using Struts 1.2.9. They are experiencing a problem when trying to use client side validation

Re: Validation Random Failures

2007-04-15 Thread Zach Calvert
Actually no. I'm simply using Required validation on text boxes (simple string input). On 4/15/07, Adam Ruggles [EMAIL PROTECTED] wrote: I haven't tracked it down yet, but I think it is in the type converters. Are you using dates or decimal values on your forms? Zach Calvert wrote: Has

Re: Validation Random Failures

2007-04-14 Thread Adam Ruggles
I'm having a similar problem. I'm extending the ActionSupport object and I have no validation specified and I'm experiencing the same issue. I did enable validation and the results didn't change. The application was previously built on webwork2 where I didn't experience these issues at all.

Re: Validation Random Failures

2007-04-14 Thread Zach Calvert
Has anyone figured out why Validation randomly fails??? On 4/14/07, Adam Ruggles [EMAIL PROTECTED] wrote: I'm having a similar problem. I'm extending the ActionSupport object and I have no validation specified and I'm experiencing the same issue. I did enable validation and the results didn't

Re: Validation Random Failures

2007-04-14 Thread Adam Ruggles
I haven't tracked it down yet, but I think it is in the type converters. Are you using dates or decimal values on your forms? Zach Calvert wrote: Has anyone figured out why Validation randomly fails??? On 4/14/07, Adam Ruggles [EMAIL PROTECTED] wrote: I'm having a similar problem. I'm

Re: Validation Annotations

2007-04-09 Thread Antony Stubbs
I have the same issue. atm I send everything to !input which is by default excluded from validation. But try looking at something like this in your struts.xml: interceptor-ref name=crudStack param name=validation.excludeMethodsedit,create/param /interceptor-ref I haven't tried

RE: Validation, ModelDriven and Field Errors

2007-03-29 Thread Juan Espinosa
Para: Struts Users Mailing List Asunto: Re: Validation, ModelDriven and Field Errors --- Juan Espinosa [EMAIL PROTECTED] wrote: Then i change the action to an action that implements ModelDriven, when i do this changes the errors next to the controls doesnt appear any more. I must add in the jsp

Re: Validation, ModelDriven and Field Errors

2007-03-28 Thread Dave Newton
--- Juan Espinosa [EMAIL PROTECTED] wrote: Then i change the action to an action that implements ModelDriven, when i do this changes the errors next to the controls doesnt appear any more. I must add in the jsp page the tag s:fielderror/ to get the errros. Anyone knows why the errors

RE: Validation, ModelDriven and Field Errors

2007-03-28 Thread Juan Espinosa
Asunto: Re: Validation, ModelDriven and Field Errors --- Juan Espinosa [EMAIL PROTECTED] wrote: Then i change the action to an action that implements ModelDriven, when i do this changes the errors next to the controls doesnt appear any more. I must add in the jsp page the tag s:fielderror

Re: Validation Framework

2007-03-14 Thread Balazs Michnay
, Balazs - Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, March 13, 2007 6:21:52 PM Subject: Re: Validation Framework --- Christopher Schultz wrote: I didn't say that you need another URL that doesn't perform

Re: Validation on java.util.List

2007-03-14 Thread Alex Wibowo
Hi Dave, I came up with my own solution. Basically I wrote a method that I called manually (i.e. I didnt use expressionvalidator annotation).. in that method, i perform the check myself. If there was any error, I did addFieldError(customers[index], getText(some.text.from.properties.file ));

Re: Validation on java.util.List

2007-03-14 Thread Dave Newton
--- Alex Wibowo [EMAIL PROTECTED] wrote: It is not the best solution.. so if you found a better way to do it, please let me know. I don't know if this is a better way or not and it does not use annotations (at least not yet), but... (1) Create a validation config file for the *object* (in my

Re: Validation on java.util.List

2007-03-14 Thread Dave Newton
Just a quick followup regarding annotations: --- Dave Newton [EMAIL PROTECTED] wrote: I don't know if this is a better way or not and it does not use annotations (at least not yet), but... If you annotate the class contained in the collection the @VisitorFieldValidator still works. This won't

Re: Validation on java.util.List

2007-03-14 Thread Alex Wibowo
Hi Dave, Thanks for that.. I will have a look at the VisitorValidator tomorrow (its 1 AM here :P ) I am sort of in the same position as you (using Hibernate objects at the web layer)... I have given that a thought before (annotating the hibernate objects with validation annotation). But that

Re: Validation on java.util.List

2007-03-14 Thread Dave Newton
--- Alex Wibowo [EMAIL PROTECTED] wrote: But that will tie up the hibernate objects to Struts, wouldnt it? XWork, technically, but yes. The other issue (I think; haven't explored it yet) is that you'd lose the ability to validate differently based on the Action method (which I need). So I'm

Re: Validation on java.util.List

2007-03-14 Thread cilquirm
I don't know if this helps, but when I validate a list or array , i use OGNL's selection/projection facility : i.e. : customers.{ ? #this.age gt 0 and #this.username neq null }.size() eq customers.size creates a list of all customers whose age is greater than zero and who have a username

Re: Validation Framework

2007-03-13 Thread Mike Baroukh
I'm still using struts 1.1 and your struts config/form is really different from what I used to do. But, in struts 1.1, we had to add validate=true in the struts-config on the action ... your struts-config doesn't have any. Maybe ... Mike Balazs Michnay a écrit : Dear Struts Users, I'm

Re: Validation Framework

2007-03-13 Thread Dave Newton
--- Balazs Michnay [EMAIL PROTECTED] wrote: I'm relatively new to Struts and am trying to get the Validation Framework working without success. You neither set validate='true' on your Action (in the struts-config action-mapping configuration element) nor call the form bean's 'validate' method

Re: Validation Framework

2007-03-13 Thread Balazs Michnay
Users Mailing List user@struts.apache.org Sent: Tuesday, March 13, 2007 4:24:09 PM Subject: Re: Validation Framework --- Balazs Michnay [EMAIL PROTECTED] wrote: I'm relatively new to Struts and am trying to get the Validation Framework working without success. You neither set validate='true

Re: Validation framework question

2007-03-13 Thread Mike Baroukh
Hi. This is only a problem with javac and depending on wich java version you use. jdk5 should not have the problem. You may also try to use jikes for compiler. There may be or may be no code added for the validation. But this is not the problem ... Mike Chaudhary, Harsh a écrit : I am

RE: Validation framework question

2007-03-13 Thread Chaudhary, Harsh
: Tuesday, March 13, 2007 11:51 AM To: Struts Users Mailing List Subject: Re: Validation framework question Hi. This is only a problem with javac and depending on wich java version you use. jdk5 should not have the problem. You may also try to use jikes for compiler. There may be or may

Re: Validation framework question

2007-03-13 Thread Mike Baroukh
. -Original Message- From: Mike Baroukh [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:51 AM To: Struts Users Mailing List Subject: Re: Validation framework question Hi. This is only a problem with javac and depending on wich java version you use. jdk5 should not have

Re: Validation framework question

2007-03-13 Thread Dave Newton
--- Mike Baroukh [EMAIL PROTECTED] wrote: jdk5 should not have the problem. Did 1.5+ remove the 64K limitation? There may be or may be no code added for the validation. But this is not the problem ... Technically, no, but it's the gating issue in this case. Try breaking up the JSP into

RE: Validation framework question

2007-03-13 Thread Chaudhary, Harsh
List Subject: Re: Validation framework question then, you may try to look at the compiled jsp ? Chaudhary, Harsh a écrit : I know that the exception Maximum try/catch size reached has something to do with the compiler but what I would likt to know is that whether or not any validation code

Re: Validation framework question

2007-03-13 Thread Mike Baroukh
Did 1.5+ remove the 64K limitation? I'm not absolutly sure, but think. I read this once and it's been a long time since I didn't saw this exception ... Mike Dave Newton a écrit : --- Mike Baroukh [EMAIL PROTECTED] wrote: jdk5 should not have the problem. Did 1.5+ remove the 64K

Re: Validation Framework

2007-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: Thanks a lot for your help! It really does work! What I missed was the validate=true attribute of the action tag, however, this was not mentioned by any of the articles I read. If it's not mentioned, you should point

Re: Validation Framework

2007-03-13 Thread Dave Newton
--- Christopher Schultz wrote: Right. Under most circumstances, you should set validate=true in your action definition, and /not/ call form.validate() in your own action. You /are/ free to call validation by hand, but it's generally more convenient to allow Struts to handle the

Re: Validation framework question

2007-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: --- Mike Baroukh [EMAIL PROTECTED] wrote: jdk5 should not have the problem. Did 1.5+ remove the 64K limitation? The 64k is a limit for method bodies, not try/catch. It should still be very much in force:

Re: Validation framework question

2007-03-13 Thread Mike Baroukh
where my IDE stores those files. I am using WSAD 5.1.1 with WebSphere. Any suggestions would be appreciated. Harsh. -Original Message- From: Mike Baroukh [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:56 AM To: Struts Users Mailing List Subject: Re: Validation framework

Re: Validation framework question

2007-03-13 Thread Dave Newton
--- Christopher Schultz wrote: I wrote: Try breaking up the JSP into dynamic includes This might not help, depending in which type of include you use. Static includes, for example, [...] ... d. Looking

Re: Validation Framework

2007-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: --- Christopher Schultz wrote: Right. Under most circumstances, you should set validate=true in your action definition, and /not/ call form.validate() in your own action. You /are/ free to call validation by hand, but

Re: Validation framework question

2007-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: --- Christopher Schultz wrote: I wrote: Try breaking up the JSP into dynamic includes This might not help, depending in which type of include you use. Static includes, for example, [...] ... Heh. Missed dynamic.

Re: Validation Framework

2007-03-13 Thread Dave Newton
--- Christopher Schultz wrote: I didn't say that you need another URL that doesn't perform validation. Oh. I guess I don't know another way to show a form via an Action without running validation except by defining an Action. d.

Re: Validation on java.util.List

2007-03-13 Thread Dave Newton
--- Alex Wibowo [EMAIL PROTECTED] wrote: I am using Struts 2.0. Has anyone ever done validation on individual item in java.util.List before? I'm drawing a blank on this one too after poking it with a stick for about an hour now... I have a similar requirement (but with fairly heavy

RE: validation help

2007-02-09 Thread fea jabi
can someone help me with this please. thanks. From: fea jabi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: validation help Date: Thu, 08 Feb 2007 10:01:01 -0500 Have 2 radio buttons of ID and Name and an input field to enter

Re: validation help

2007-02-09 Thread Jim Reynolds
It appears you are probably using the ValidatorForm or ValidatorActionForm in 1.x? Just a thought ... could you just implement the validate method in the Action form and handle it with logic? I did some looking, and see that you can validate two fields against each other, but I couldn't find

Re: validation help

2007-02-09 Thread Niall Pemberton
I don't think you can do this without either a custom validator or as Jim suggests, implementing it in the validate method of your form. Niall On 2/9/07, Jim Reynolds [EMAIL PROTECTED] wrote: It appears you are probably using the ValidatorForm or ValidatorActionForm in 1.x? Just a thought ...

Re: Validation Message including Image

2007-02-02 Thread Dave Newton
--- Struts2 Fan [EMAIL PROTECTED] wrote: I wonder if we can put the validation message whereever we want for each input field? http://cwiki.apache.org/WW/form-tags.html Search for labelPosition. If you need more control http://cwiki.apache.org/WW/themes-and-templates.html. d.

Re: Validation Annotations

2007-01-08 Thread André Faria
I have the following problem: The methods execute() and list() must not be validated by the save method rule... I have differentes validation rules for each method, but when I call the action, the interceptor tries to validate the input before call execute method. How can I resolve this?

Re: Validation Annotations

2007-01-08 Thread cilquirm
According to http://struts.apache.org/2.x/docs/validation-annotation.html you can specify annotations at the method level. André Faria-3 wrote: Hi People!!! Is there a way to use Validation Annotations only for a method or always for the action... Example, if I have a action

Re: Validation Annotations

2007-01-08 Thread André Faria
Yes, but thats didnt works... If you specify the annotations on the method save for example... The validation roles will be apllyied for the others methods too. I am running Struts 2.0.3 with xWork 2.0.0 (06/01/2007)... Thank's André Faria cilquirm escreveu: According to

Re: Validation Annotations

2007-01-08 Thread Laurie Harper
I haven't used this, but looking at the last example in the documentation it looks like there are two types of field-level annotation: property accessor annotations and action method annotations. I would guess that validations specified through property accessor annotations would always fire,

Re: Validation Annotations

2007-01-08 Thread André Faria
I tried to validate only the method save, so I puted the annotations on the top of the save method signature, but when I called execute method the validation erros appered. André Faria Laurie Harper escreveu: I haven't used this, but looking at the last example in the documentation it looks

Re: Validation Framework and DispatchAction

2006-12-28 Thread Wendy Smoak
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote: This validates at the action mapping level so in the above case it validates on update as well as create. How do you validate just against the create submitaction of the DispatchAction mapping? I would suggest turning off the automatic

RE: Validation Framework and DispatchAction

2006-12-28 Thread Andy Foster
of parameters and the third submitaction does not validate. Regards Andy -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 28 December 2006 16:46 To: Struts Users Mailing List Subject: Re: Validation Framework and DispatchAction On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote

Re: Validation Framework and DispatchAction

2006-12-28 Thread Ed Griebel
both need to validate but each validate against a different set of parameters and the third submitaction does not validate. Regards Andy -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 28 December 2006 16:46 To: Struts Users Mailing List Subject: Re: Validation

Re: Validation Framework and DispatchAction

2006-12-28 Thread Wendy Smoak
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote: This should solve my problem as each submitaction that requires validation validates the same set of data. However this will not work if there are three methods create and update both need to validate but each validate against a different set

Re: Validation rule writing

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, Thom Burnett wrote: I'm trying to validate two fields - area code and phone number (as nnn- no areacode in that input). [snip] constant-namephoneFormatMask/constant-name

Re: Validation rule writing

2006-12-15 Thread Laurie Harper
What Chris said, plus this: field property=areaCode depends=required, areaCodeMask ... there's no validation rule named 'areaCodeMask' or 'phoneMask'; you want just 'mask' as the rule name. See the validator documentation for examples. Also, is validation working at all for you? For

Re: validation

2006-12-10 Thread Nagraj Rao
PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, December 11, 2006 1:58 AM Subject: Re: validation I assume the different validators set the property argument of ActionErrors.add() differently. Apparently the field validator sets it to the field name (which allows

Re: VALIDATION

2006-11-30 Thread Ed Griebel
The easiest way to do this is to turn off automatic validation in your struts-config.xml and manually call validation in your desired methods. Something like: ActionMessages errors = form.validate(mapping, request); if ( errors != null errors.size() 0 ) { LOG.warn(Errors detected!!);

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 10:51 a.m. Para: Struts Users Mailing List Asunto: Re: VALIDATION The easiest

Re: VALIDATION

2006-11-30 Thread Ed Griebel
el: Jueves, 30 de Noviembre de 2006 10:51 a.m. Para: Struts Users Mailing List Asunto: Re: VALIDATION The easiest way to do this is to turn off automatic validation in your struts-config.xml and manually call validation in your desired methods. Something like: ActionMessages errors = form.validate

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
I want to know if could use validation in this way, telling validation to be used only in the medthod registercustomer and the results for this method validationOk - result registrationView validationFail - result registrationEnd I dont want to use the methods input and success, also in this

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 11:10 a.m. Para: Struts Users Mailing List Asunto: Re: VALIDATION Sorry, I assumed you were using S1, I don't know how for s2. On 11/30/06, Juan Espinosa [EMAIL PROTECTED] wrote: Im using struts2, doing in this way works in struts2

RE: VALIDATION

2006-11-30 Thread Dave Newton
From: Juan Espinosa [mailto:[EMAIL PROTECTED] Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? Struts2 is rather different, but you can still do your validation in your actions if you really want to (or do additional business-logic

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
. Para: Struts Users Mailing List Asunto: RE: VALIDATION From: Juan Espinosa [mailto:[EMAIL PROTECTED] Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? Struts2 is rather different, but you can still do your validation in your actions if you

RE: Validation XMl entity

2006-11-26 Thread Vishal Seth
and reference it using xml entity.. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Friday, November 24, 2006 8:24 PM To: Struts Users Mailing List Subject: Re: Validation XMl entity -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishal, Vishal Seth wrote: Hi

Re: Validation XMl entity

2006-11-26 Thread Niall Pemberton
] Sent: Friday, November 24, 2006 8:24 PM To: Struts Users Mailing List Subject: Re: Validation XMl entity Vishal, Vishal Seth wrote: Hi, Does struts validation support XML entity. What do you mean? Can explain this question in more detail? - -chris

RE: Validation XMl entity

2006-11-26 Thread Vishal Seth
Hi, But does struts support when integrated with commons-validator? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 12:00 PM To: Struts Users Mailing List Subject: Re: Validation XMl entity On 11/27/06, Vishal Seth [EMAIL PROTECTED

Re: Validation XMl entity

2006-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishal, Vishal Seth wrote: Hi, Does struts validation support XML entity. What do you mean? Can explain this question in more detail? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla -

Re: Validation XMl entity

2006-11-24 Thread Ed Griebel
Struts validation is generally used only for validations of fields from HTTP submissions, check out http://struts.apache.org/1.x/faqs/validator.html If you need to validate an XML file, you may be able to use the Apache Digester classes (http://jakarta.apache.org/commons/digester/) or some of

RE: Validation + multiple Submit buttons

2006-11-16 Thread Andrew Martin
Schultz [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 14 november 2006 15:37 Aan: Struts Users Mailing List Onderwerp: Re: Validation + multiple Submit buttons -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Martin wrote: That would be one solution, but in my case I have 4 submit

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
. (if that make sense!) -Oorspronkelijk bericht- Van: Christopher Schultz [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 14 november 2006 14:48 Aan: Struts Users Mailing List Onderwerp: Re: Validation + multiple Submit buttons -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
Users Mailing List Onderwerp: Re: Validation + multiple Submit buttons -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Martin wrote: That would be one solution, but in my case I have 4 submit buttons, two of which redirect the user to another action (keeping scope set to session

RE: Validation + multiple Submit buttons

2006-11-14 Thread Lance Semmens
A JS free application? You can assume today's browsers have javascript, the web would break otherwise. Sure there are some cross platform issues but to go JS free is a tall order and will limit you to a clunky UI. If JS free is your direction, you could wrap your back button in a html:form

Re: Validation + multiple Submit buttons

2006-11-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Martin wrote: I have just begun to add validation to my forms using struts validator, which is quite nice. I have however a problem when I have more than one submit button on a form. For example I have a Save button and a Back

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
' Onderwerp: RE: Validation + multiple Submit buttons A JS free application? You can assume today's browsers have javascript, the web would break otherwise. Sure there are some cross platform issues but to go JS free is a tall order and will limit you to a clunky UI. If JS free is your direction, you

Re: Validation + multiple Submit buttons

2006-11-14 Thread Ed Griebel
- Van: Lance Semmens [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 14 november 2006 14:54 Aan: 'Struts Users Mailing List' Onderwerp: RE: Validation + multiple Submit buttons A JS free application? You can assume today's browsers have javascript, the web would break otherwise. Sure there are some

Re: Validation + multiple Submit buttons

2006-11-14 Thread Mark Shifman
Use a Cancel button http://struts.apache.org/1.x/struts-taglib/tlddoc/html/cancel.html from javadoc Renders an HTML input element of type submit. This tag is only valid when nested inside a form tag body. Pressing of this submit button causes the action servlet to bypass calling the associated

RE: Validation + multiple Submit buttons

2006-11-14 Thread Andrew Martin
:[EMAIL PROTECTED] Verzonden: dinsdag 14 november 2006 15:20 Aan: Struts Users Mailing List Onderwerp: Re: Validation + multiple Submit buttons You could turn off automatic validation in struts-config.xml and call it manually in the action method when you need validation. If you are using a recent

Re: Validation + multiple Submit buttons

2006-11-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lance, Lance Semmens wrote: A JS free application? You can assume today's browsers have javascript, the web would break otherwise. Sure there are some cross platform issues but to go JS free is a tall order and will limit you to a clunky UI. I

Re: Validation + multiple Submit buttons

2006-11-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Martin wrote: That would be one solution, but in my case I have 4 submit buttons, two of which redirect the user to another action (keeping scope set to session) and then back to the original form. Hmm... that makes things more

Re: Validation + multiple Submit buttons

2006-11-14 Thread Laurie Harper
Andrew Martin wrote: Maybe a stupid question but is it possible to call the specifc XML configuration from within the action? Yup, just set up your validation as usual, then set validate=false on the action mapping and call the validation by hand: ActionMessages errors = form.validate();

Re: Validation problem

2006-11-09 Thread Niall Pemberton
Look at where you're directing the action to go to if an error occurs - i.e. what have you specified as you're input for the action in your struts-config.xml? It looks like the error occured after validation failed and when it tried to forward to whatever was specified in the input parameter.

Re: Validation problem

2006-11-09 Thread Li
Hi, Niall, Problem solved. That's cuz I was trying to forward to another customized action. I had made this action as ForwardAction provided by Struts. It works now. Thanks. Sorry I was a bit rush writing the previously email so that forgot to put the version number. Regards Li On 11/10/06,

Re: Validation with actions

2006-10-26 Thread Chris Pratt
Ummm... If you don't call html:javascript/ there won't be any client side validation code inserted, so there won't be any client side validation performed, IIRC. (*Chris*) On 10/26/06, zeta [EMAIL PROTECTED] wrote: Ok, sorry. If I use DynaValidationActionForm instead of DynaValidationForm

Re: Validation with actions

2006-10-25 Thread Laurie Harper
zeta wrote: I want to associate the validation with the action definition. In this way, I need to performed the client-side validation when an action is called and not taken into account the form associated to this action. Can you give me some example of how do this? I'm not sure what you mean

Re: Validation _without_ looking up keys in resource bundles

2006-10-11 Thread Stuart Robertson
Ah ha. Found it. Looks like the dev guys accounted for this. You can see how in org.apache.struts.validator.Resources. public static ActionMessage getActionMessage(Validator validator, HttpServletRequest request, ValidatorAction va, Field field) { Msg msg =

Re: Validation on String[]

2006-09-21 Thread Li
hi, there is no such type : java.lang.String[], try to use List or ArrayList On 9/21/06, Sahil Gupta [EMAIL PROTECTED] wrote: Hi, I have used a dyna form in which I have a property which is a multi-select pick list defined as form-property name=location type=java.lang.String[] Now I want to

RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi, How can we use List or ArrayList in DynaValidator Forms? Regards, Sahil Gupta -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:57 PM To: Struts Users Mailing List Subject: Re: Validation on String[] hi, there is no such type

Re: Validation on String[]

2006-09-21 Thread Li
- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:57 PM To: Struts Users Mailing List Subject: Re: Validation on String[] hi, there is no such type : java.lang.String[], try to use List or ArrayList On 9/21/06, Sahil Gupta [EMAIL PROTECTED] wrote: Hi, I have used a dyna

RE: Validation on String[]

2006-09-21 Thread Strachan, Paul
[mailto:[EMAIL PROTECTED] Sent: Thu 21/09/2006 8:40 PM To: 'Struts Users Mailing List' Subject: RE: Validation on String[] Hi, How can we use List or ArrayList in DynaValidator Forms? Regards, Sahil Gupta -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21

<    1   2   3   4   5   6   7   8   9   10   >