RE: Validation Problem - very urgent please reply

2006-01-10 Thread Meenakshi Singh
Hi, I would suggest that manually call validate and use Request Scope Not many people seem to be using this approach, yet I have found it to be the best overall solution. This is how it works: First of all make sure you do not have validate=”true” set in your action mapping.You should call

Re: Validation Problem - very urgent please reply

2006-01-10 Thread Vishal Gaurav
Hi, I feel that the approach given by Peter would be fine. You might be populating the drop down by iterating a collection fetched from Database. When you submit the form only the selected value is submitted from the drop down not the entire collection (That is why you do not get the collection

Re: Validation Problem - very urgent please reply

2006-01-10 Thread Raghu Kanchustambham
The trick is to point the input variable in your struts-config.xml to the action class that generated the JSP page rather than the JSP page itself. action attribute=enquiryForm name=enquiryForm path=/Enquiry scope=request validate=true type=com.tuningfork.action.EnquiryAction

Re: Validation in ie5

2006-01-05 Thread Niall Pemberton
out exactly what is going wrong. Niall - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:33 AM Subject: Re: Validation in ie5 I am using struts 1.2.7, and I have tryied with the commons-validator 1.2.0, but that didn't help. When I use

Re: Validation in ie5

2006-01-05 Thread Kristian.L.Petersen
Hi, I have replaced : function retrieveFormName(form) { // Please refer to Bugs 31534, 35127, 35294 37315 // for the history of the following code if (form.getAttributeNode) { if (form.getAttributeNode(id) form.getAttributeNode(id).value) {

Re: Validation in ie5

2006-01-05 Thread Niall Pemberton
I can't see any difference between the two version of the retrieveFormName() function you've pasted here. Also can you find out whats on line 1361? Niall - Original Message - From: [EMAIL PROTECTED] Sent: Thursday, January 05, 2006 9:41 AM Hi, I have replaced : function

Re: Validation in ie5

2006-01-05 Thread Kristian.L.Petersen
The diff is : form.attributes[name]; return form.attributes[name]; Line 1361 is : oMasked = eval('new ' + retrieveFormName(form) + '_mask()');

Re: Validation in ie5

2006-01-05 Thread Niall Pemberton
' + retrieveFormName(form) + '_mask();'); Whether that makes a difference in IE5 I'm only guessing in the dark. Niall - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, January 05, 2006 10:45 AM Subject: Re: Validation in ie5 The diff is : form.attributes[name

Re: Validation in ie5

2006-01-05 Thread Kristian.L.Petersen
Hi, I changed the retrieveFormName method so it now lookes like this : function retrieveFormName(form) { var x; if (form.getAttributeNode) { if (form.getAttributeNode(id) form.getAttributeNode(id).value) { x = form.getAttributeNode(id).value; }

Re: Validation in ie5

2006-01-05 Thread Niall Pemberton
, January 05, 2006 2:10 PM Subject: Re: Validation in ie5 Hi, I changed the retrieveFormName method so it now lookes like this : function retrieveFormName(form) { var x; if (form.getAttributeNode) { if (form.getAttributeNode(id) form.getAttributeNode(id).value) { x

Re: Validation in ie5

2006-01-04 Thread Ted Husted
The Action framework doesn't support browser detection out-oif-the-box. But, you could check the HTTP request flags from the Action to determine the browser, and then forward to another version of the page that didn't use client-side validation or used custom validation. You might want to report

Re: Validation in ie5

2006-01-04 Thread Niall Pemberton
Saying it doesn't work in ie5 doesn't really help alot - I don't have a copy of ie5, so if you could specify the issue then it would be helpful. Also what version of 1) Struts and 2) Commons Validator are you using? Can you try upgrading to Commons Validator 1.2.0 and see if the issue still

Re: validation plug-in with multiple config files

2005-12-21 Thread Laurie Harper
Christopher Becker wrote: I am developing a Struts (v1.2.7) app that has multiple struts-config files, but not utilizing modules, so web.xml has one init param with config files separated by commas, eg. init-param param-nameconfig/param-name

Re: validation javascripts

2005-12-15 Thread Raghu Kanchustambham
I'm not sure it matters much which order they're applied in, though, since all have to pass anyway. Order does matter... That will decide which *one* of the error messages to display to the user when one of these tests fail. On 12/15/05, Laurie Harper [EMAIL PROTECTED] wrote: Deepa Khetan

Re: validation javascripts

2005-12-15 Thread Deepa Khetan
ya.. i agree with you Raghu!! I would want minlength validation to work before mask is applied.. But the order in which the validations are specified do not affect the order in which they are applied. I have tried that out. On 12/15/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: I'm not

Re: validation javascripts

2005-12-14 Thread Laurie Harper
Deepa Khetan wrote: Is there a way to specify the order of validaions to occur using validation.xml?? I have noticed that mask take precedence over minlength I'm not sure; maybe the order they're listed will affect the order they're applied? I'm not sure it matters much which order they're

Re: validation javascripts

2005-12-12 Thread Laurie Harper
Bahadır Yağan wrote: Hi, Is there a way to change the behavior of the validation plug-in, to print the errors inside the page rather than showing them in a message box. You can place server-side validation errors anywhere in the page you like, but there's currently no way to control how

Re: validation javascripts

2005-12-12 Thread Deepa Khetan
Is there a way to specify the order of validaions to occur using validation.xml?? I have noticed that mask take precedence over minlength On 12/13/05, Laurie Harper [EMAIL PROTECTED] wrote: Bahadır Yağan wrote: Hi, Is there a way to change the behavior of the validation plug-in, to

Re: Validation without using a DynaValidatorForm

2005-11-16 Thread Wendy Smoak
On 11/16/05, Jesus Salvo Jr. [EMAIL PROTECTED] wrote: Struts 1.2.7 What I am confused about is that validation via the validation.xml seems only to work ( or so I believe after reading various documentations and samples ) if one uses DynaValidatorForm instead of an ActionForm. I haven't

Re: Validation without using a DynaValidatorForm

2005-11-16 Thread Jesus Salvo Jr.
On Thursday 17 November 2005 13:24, Wendy Smoak wrote: On 11/16/05, Jesus Salvo Jr. [EMAIL PROTECTED] wrote: Struts 1.2.7 What I am confused about is that validation via the validation.xml seems only to work ( or so I believe after reading various documentations and samples ) if one

RE: Validation seemingly not getting called any longer

2005-11-09 Thread Garner, Shawn
Subject: RE: Validation seemingly not getting called any longer Yeah, that's there. Like I said, it was working earlier. Not sure why it's not now. Preston [EMAIL PROTECTED] 11/8/2005 2:41 PM Do you have the commons-validator jar in your WEB-INF/lib directory of your web application? Might

RE: Validation seemingly not getting called any longer

2005-11-09 Thread Preston CRAWFORD
using multiple (or module based) struts-config.xml files. Regards, David -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 9:27 PM To: user@struts.apache.org Subject: RE: Validation seemingly not getting called any longer Solved

RE: Validation seemingly not getting called any longer

2005-11-09 Thread David G. Friedman
struts-user list starts here: http://marc.theaimsgroup.com/?l=struts-userm=111056535028708w=2 Regards, David -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 1:46 PM To: user@struts.apache.org Subject: RE: Validation seemingly not getting

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Garner, Shawn
I think you need something in the struts config file telling it to use the validation plugin. Try that line of investigation. Not sure off the top of my head. Shawn D. Garner -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 11:39 AM

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Martin Gainty
' user@struts.apache.org Sent: Tuesday, November 08, 2005 1:08 PM Subject: RE: Validation seemingly not getting called any longer I think you need something in the struts config file telling it to use the validation plugin. Try that line of investigation. Not sure off the top of my head. Shawn D

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Dave Newton
Preston CRAWFORD wrote: We have a simple login form. By the book. For some reason all of a sudden the validation in validation.xml is no longer getting called. We have validate set to true in the action. Everything is still named the same. Any idea why this would have changed or where to start

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
I have that. plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in And my action looks like this... action path=/loginSubmit

Re: Validation Question how to echo back users input in error message?

2005-11-08 Thread Niall Pemberton
The short answer is that there isn't a way to echo back user input in the error message. Most of the time I don't think its necessary to do so anyway - since if you're re-displaying/highlighting errors then what is the need. The one time I scenario I wanted to do something like that, was when I

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
Nothing that I can see. What could I log to find out what's going on? It basically just doesn't get called. Preston [EMAIL PROTECTED] 11/8/2005 10:52 AM Preston CRAWFORD wrote: We have a simple login form. By the book. For some reason all of a sudden the validation in validation.xml is no

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Garner, Shawn
I think you also need a tag in the jsp page using it. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 12:39 PM To: Struts Users Mailing List Subject: Re: Validation seemingly not getting called any longer yes validation.xml and validator

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
[mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 12:39 PM To: Struts Users Mailing List Subject: Re: Validation seemingly not getting called any longer yes validation.xml and validator-rules.xml are both configured as properties via plug-in in struts-config.xml http://www.oracle.com

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Garner, Shawn
List Subject: Re: Validation seemingly not getting called any longer yes validation.xml and validator-rules.xml are both configured as properties via plug-in in struts-config.xml http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html HTH, Martin- - Original Message - From

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Wendy Smoak
On 11/8/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: I have that. Either way the bottom line for me is it flys past validation, message or no message. So I need to figure out why that is happening. What _type_ of Action is LoginSubmitAction and How is it configured in validation.xml? What's

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
It's not configured in Validation.xml. The form is formset form name=loginForm field property=username depends=required arg key=loginForm.username/ /field field property=password depends=required,mask arg

RE: Validation seemingly not getting called any longer

2005-11-08 Thread David G. Friedman
-Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 7:05 PM To: user@struts.apache.org Subject: Re: Validation seemingly not getting called any longer It's not configured in Validation.xml. The form is formset form name=loginForm

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
@struts.apache.org Subject: Re: Validation seemingly not getting called any longer It's not configured in Validation.xml. The form is formset form name=loginForm field property=username depends=required arg key=loginForm.username/ /field

RE: Validation seemingly not getting called any longer

2005-11-08 Thread David G. Friedman
: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 9:27 PM To: user@struts.apache.org Subject: RE: Validation seemingly not getting called any longer Solved it. Weird. I rolled back to an old version to try to figure out what was different. And the 1 thing

Re: Validation Question how to echo back users input in error message?

2005-11-04 Thread Michael Jouravlev
I would like to know the answer on this too. I searched the Net, all examples use properties from property file. Using resource=false does not help with either (neither?) of these variants: arg0 key=nestedUser.fromAddress resource=false/ arg0 key=${nestedUser.fromAddress} resource=false/ arg0

Re: Validation and error messages in session

2005-10-17 Thread Adam Hardy
It's a shame no-one answered this. I was interested in reading a reply. My situation is that on validation failure, my 'input' mapping is to another action, not direct to a JSP, so that I can carry out the necessary view helper code. As part of this I can also grab the validation errors from

Re: Validation Configuration for Multiple Modules

2005-10-13 Thread tarek . nabil
[EMAIL PROTECTED] Date Wed, 12 Oct 2005 21:02:00 +0100 To Struts Users Mailing List user@struts.apache.org Subject Re: Validation Configuration for Multiple Modules [EMAIL PROTECTED] on 11/10/05 07:20, wrote: I'm using *Struts 1.1* to build an application with multiple Struts modules

Re: Validation Configuration for Multiple Modules

2005-10-13 Thread Adam Hardy
Message - From Adam Hardy [EMAIL PROTECTED] Date Wed, 12 Oct 2005 21:02:00 +0100 To Struts Users Mailing List user@struts.apache.org Subject Re: Validation Configuration for Multiple Modules [EMAIL PROTECTED] on 11/10/05 07:20, wrote: I'm using *Struts 1.1* to build an application

Re: Validation Configuration for Multiple Modules

2005-10-12 Thread Adam Hardy
[EMAIL PROTECTED] on 11/10/05 07:20, wrote: I'm using *Struts 1.1* to build an application with multiple Struts modules. I put my validations for each module in a seperate validations.xml file. For example, I have validations-a.xml for module a and validations-b.xml for module b. I then

Re: Validation of input field requires SQL. Better to put it in Form or in Action?

2005-09-21 Thread Jeff Beal
In general, ActionForm validation is limited to the most basic input validation, mostly making sure that incoming strings can be parsed into a specific type. If you need to issue a SQL query to ensure valid data, that sounds like a business logic operation, and probably makes more sense in the

RE: Re: Validation Issue

2005-09-16 Thread Amol Yadwadkar
your records. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, September 16, 2005 4:37 AM To: user@struts.apache.org Subject: Re: Validation Issue Amol Yadwadkar wrote: Hi List, I am using Validation Framework. field property

Re: Validation Issue

2005-09-15 Thread Laurie Harper
Amol Yadwadkar wrote: Hi List, I am using Validation Framework. field property=clientTaxId depends=required,mask arg0 key=loanAppForm.clientTaxId/ arg1 name=mask key=prompt.taxid / var var-namemask/var-name var-value${taxid}/var-value

Re: Validation :: best practice?

2005-09-09 Thread Niall Pemberton
I think you're assertion is incorrect. including the html:javascript tag on a page will generate all the javascript validations for a form - they get invoked by you putting some javascript in the html:form's onsubmit event - nothing to do with the validate setting in the struts config. All the

Re: Validation :: best practice?

2005-09-09 Thread Rick Reumann
emre akbas wrote the following on 9/9/2005 10:12 AM: , I want to know what the state-of-the-art practices about Struts validation are. It is well-known that there are some problems in automatic validation. Here is a good article: http://www.reumann.net/struts/articles/request_lists.jsp Are

Re: Validation :: best practice?

2005-09-09 Thread Michael Jouravlev
On 9/9/05, emre akbas [EMAIL PROTECTED] wrote: Hi, I want to know what the state-of-the-art practices about Struts validation are. Try these: https://strutslive.dev.java.net https://formdef.dev.java.net It is well-known that there are some problems in automatic validation. Here is a

Re: Validation Rules method not found

2005-08-15 Thread David McReynolds
I just fixed this. You have mixed up the versions of the validator-rules.xml and the struts jar. Either go back to struts jar 1.1 or upgrade the validator-rules.xml. On 8/12/05, Doug Thomas [EMAIL PROTECTED] wrote: While implementing struts validation for the first time (yup - I'm a newbie), I

Re: Validation Help

2005-07-23 Thread Paul Goepfert
I have a question. I have decided to use the vaildation framework to do the validation in my web app. I have created a validation.xml file, and a vaildator-rules.xml file. I noticed in books about struts that I have there is a properties file associated with the vaildation. Am I right? If

Re: Validation Help

2005-07-23 Thread Rafael Taboada
the properties file is that u r using right now... I mean u can use it in order to call value keys. -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me gusta tener la idea de controlar mi vida

Re: Validation Help

2005-07-23 Thread Rafael Taboada
A good book about Struts and Validator framework is Jakarta Struts Live - Rick Hightower U can get it in www.theserverside.com http://www.theserverside.com -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me gusta tener la idea de controlar mi vida

Re: validation question...

2005-07-22 Thread Aleksandar Matijaca
I like the CSS 'trick' -- I will try it tonight ! Thanks again Wendy, Regards, Alex. On 7/22/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Aleksandar Matijaca [EMAIL PROTECTED] I would like to automatically place a little red * right beside the input field. For my password

Re: validation question...

2005-07-21 Thread Laurie Harper
You could add errorClassId on the input element and use CSS to insert an image of a little red *... :-) I can't think of a clean way to find out if an error exists for a particular property though. This might work (haven't tried it): c:if test=${not empty messages.message['property']}*/c:if

Re: validation question...

2005-07-21 Thread Aleksandar Matijaca
Thanks Laurie, I will try it !! Cheers, Alex. On 7/21/05, Laurie Harper [EMAIL PROTECTED] wrote: You could add errorClassId on the input element and use CSS to insert an image of a little red *... :-) I can't think of a clean way to find out if an error exists for a particular property

Re: validation question...

2005-07-21 Thread Aleksandar Matijaca
It didn't work, but thanks for the effort Laurie... Regards, Alex. On 7/21/05, Laurie Harper [EMAIL PROTECTED] wrote: You could add errorClassId on the input element and use CSS to insert an image of a little red *... :-) I can't think of a clean way to find out if an error exists for a

Re: validation question...

2005-07-21 Thread Wendy Smoak
From: Aleksandar Matijaca [EMAIL PROTECTED] I would like to automatically place a little red * right beside the input field. For my password confirmation field, wnen I put html:errors property=confirm_password/ beside the text field, I get the WHOLE STRING for the 'required' validation,

Re: Validation is called before form is populated from my database

2005-07-20 Thread William Shief
Finally, I found two valuable solutions to my problem. The first one is MappingDispatchAction, as suggested by Hubert. It is efficient but I dislike to have so much entries in my struts-config (my application is going big enough) I found a good explanation for it by the frustrated programmer (who

Re: Validation Help

2005-07-20 Thread Glen Mazza
http://www.objectsource.com/Struts_Survival_Guide.pdf, Chapter 5. Paul Goepfert wrote: I have created a web app using struts and velocity. I am going to add vaildation on the struts end of the app. I am still learning struts. The only thing I have been able to do is use struts to move

Re: Validation is called before form is populated from my database

2005-07-19 Thread mah bub
Hi, As much I know if you need to load data when the page is load before the validation is called. You may load data when the action is called and there could be another action associated with the Submit button's page which will check the validation. I'm not sure whether it make you clear or

Re: Validation is called before form is populated from my database

2005-07-19 Thread Hubert Rabago
It seems that you're trying to prepopulate a form with values from the DB before showing it to the user. So, you have 1) call /EditionPersonne to prepopulate the form 2) show EditerPersonne.jsp to display the form 3) submit the form to /SomePathLikeSubmitPersonne If so, you don't need to specify

Re: Validation is called before form is populated from my database

2005-07-19 Thread William Shief
Unfortunately EditerPersonneAction do extend DispatchAction (using parameter do) ! (Otherwise your solution would be good) (I answer you personally because I assume such a message is not useful for the list) Billy --- Hubert Rabago [EMAIL PROTECTED] wrote: It seems that you're trying to

Re: Validation is called before form is populated from my database

2005-07-19 Thread Hubert Rabago
No, always respond to the user list when it's relevant to the question you posted. This way, other people can offer solutions as well, and those having the same problems will get to hear/read what the solution is. Since you're extending DispatchAction, you probably should turn off automatic

Re: Validation is called before form is populated from my database

2005-07-19 Thread Hubert Rabago
Another option is to switch to MappingDispatchAction* so you can set different attributes for the different situations that your Action needs to handle. Hubert *http://struts.apache.org/api/org/apache/struts/actions/MappingDispatchAction.html On 7/19/05, Hubert Rabago [EMAIL PROTECTED] wrote:

Re: Validation Help

2005-07-19 Thread Laurie Harper
Paul Goepfert wrote: I have created a web app using struts and velocity. I am going to add vaildation on the struts end of the app. I am still learning struts. The only thing I have been able to do is use struts to move between pages by way of buttons.Now I want to add validation to my

Re: Validation framework

2005-07-14 Thread Borislav Sabev
Rafael Taboada wrote: Hi folks I'm using validation framework in order to validate my fields in a form. I have three fields in a search form: strUsername strFromDate strToDate But we have the rule that the user can fill strUsername or use dates range. I mean he can search by username or he

RE: Validation framework

2005-07-14 Thread Nitish Kumar
, Nitish Kumar -Original Message- From: Borislav Sabev [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005 3:34 PM To: Struts Users Mailing List Subject: Re: Validation framework Rafael Taboada wrote: Hi folks I'm using validation framework in order to validate my fields

Re: Validation Framework Manual

2005-07-14 Thread Wendy Smoak
From: Rafael Taboada [EMAIL PROTECTED] java.lang.NoClassDefFoundError: antlr/TokenStream That just looks like you're missing antlr.jar from the classpath. Is it in WEB-INF/lib? -- Wendy Smoak - To unsubscribe, e-mail:

Re: Validation Framework Manual

2005-07-14 Thread Rafael Taboada
Yeah, that was the problem... Do u know a tutorial about how to fill my validation.xml? I want to know what i have to put in each tag. -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me gusta tener la idea de controlar mi vida

Re: Validation Framework Manual

2005-07-14 Thread Dave Newton
Rafael Taboada wrote: Yeah, that was the problem... Do u know a tutorial about how to fill my validation.xml? I want to know what i have to put in each tag. Are the docs at http://struts.apache.org/userGuide/dev_validator.html not satisfactory? Dave

Re: Validation Framework Manual

2005-07-14 Thread James Mitchell
List user@struts.apache.org Sent: Thursday, July 14, 2005 8:41 PM Subject: Re: Validation Framework Manual Rafael Taboada wrote: Yeah, that was the problem... Do u know a tutorial about how to fill my validation.xml? I want to know what i have to put in each tag. Are the docs at http

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread BHansard
If you are using Validator, you can create a DynaForm. then based on the action that you are calling, the validations can be different. This will work for either client side or server side supposedly. I have only used server side with it. Marc Demlenne [EMAIL PROTECTED] Marc Demlenne

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Rafael Taboada
Hi, use Validator framework. In this framework u can put code in order to set a client-side validation for each feld. In ur modify method, call to ur validate method. I hope it can help u -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me gusta tener

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
I DO use struts validator framework ... What i want is to to have _only_ one of the submit button to check the client-side validation But I can only decide to call validator or not by form, not by button. As it is for client side that I have this problem, I can't call it from my modify

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Set validation off in struts-config and call the Validate method from within your Action: if (yourForm.getAction().equals(action_to_validate)) { ActionErrors errors = form.validate(/*params*/); if (errors.isEmpty()) { // all is good } else { saveErrors(errors); return

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread BHansard
ada [EMAIL PROTECTED] cc Subject Re: validation client-side. Problem with 2 submit buttons I DO use struts validator framework ... What i want is to to have _only_ one of the submit button to check the client-side validation But I can only decide to call validator or not by form, not

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Sorry -- missed the 'client-side' bit somehow. ;) On 7/13/05, Jeff Beal [EMAIL PROTECTED] wrote: Set validation off in struts-config and call the Validate method from within your Action: if (yourForm.getAction().equals(action_to_validate)) { ActionErrors errors =

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
] Marc Demlenne [EMAIL PROTECTED] 07/13/2005 11:30 AM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org, Rafael Taboada [EMAIL PROTECTED] cc Subject Re: validation client-side. Problem

Re: Validation framework

2005-07-13 Thread ichy
Hi, Rafael. you can find clue on the following documentation. http://struts.apache.org/userGuide/dev_validator.html check validwhen. ichy 2005/7/14, Rafael Taboada [EMAIL PROTECTED]: Hi folks I'm using validation framework in order to validate my fields in a form. I have three fields

Re: Validation problem

2005-07-12 Thread Borislav Sabev
Rick Reumann wrote: if ( errors != null !errors.isEmpty ) -- this part can probably be shortened, I was too lazy to figure out what really gets returned if validation passes.. a null or empty ActionErrors? here is part of the code of RequestProcessor, so in both cases the form is

Re: Validation problem

2005-07-12 Thread Borislav Sabev
Rafael Taboada wrote: Hi folks, I'm doing my validation for my form fields... I use validation framework, so I don't use validate method in my form bean. The problem I have is the validate is called when I use for first time the module. I mean, when I see for frst ime the HTML form, validation

Re: Validation problem

2005-07-12 Thread Rick Reumann
Rafael Taboada wrote the following on 7/11/2005 6:28 PM: Thanks, I got it!... I needed to save the errors :) Rick Thanks for ur advice about using another class to manage JDBC... I'll review that... Do u know any samples about how to do that?.. Well typically I like to use the container

Re: Validation problem

2005-07-11 Thread Michael Jouravlev
Rafael, turn validation off and call form.validate() manually from your event handler method. Michael. On 7/11/05, Rafael Taboada [EMAIL PROTECTED] wrote: Hi folks, I'm doing my validation for my form fields... I use validation framework, so I don't use validate method in my form bean. The

Re: Validation problem

2005-07-11 Thread erikweber
I usually map multiple actions to the same form. Some have validate = true (for example, doAdd), some have validate = false (for example, viewAdd). Slightly different URL distinguishes them. Does that help? Erik -Original Message- From: Rafael Taboada [EMAIL PROTECTED] Sent: Jul 11,

Re: Validation problem

2005-07-11 Thread Rafael Taboada
Michael, it didn't work.. My ActionMapping is: action path=/Colores parameter=method type= com.sancristobal.Actions.ColorAction name=colorForm input=/pages/Colores.jsp scope=request validate=false/action My ActionForm is: public class ColorForm extends ValidatorForm { private String

Re: Validation problem

2005-07-11 Thread Rick Reumann
Rafael Taboada wrote the following on 7/11/2005 5:34 PM: Michael, it didn't work.. What didn't work? You still got validation when it was set to false? (Also just a side note, it's good practice to move all the JDBC Connection stuff to another class other than your Action. You might be

Re: Validation problem

2005-07-11 Thread Rafael Taboada
Hi. When I turned off validation yn mi struts-config.xml, validation isn't called. And when I turned off validation and call validate manually inside a method of my ActionClass, validation isn't called. I calle validate method in: public ActionForward buscarColor(ActionMapping mapping,

Re: Validation problem

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Rafael Taboada [EMAIL PROTECTED] wrote: Hi. When I turned off validation yn mi struts-config.xml, validation isn't called. And when I turned off validation and call validate manually inside a method of my ActionClass, validation isn't called. I calle validate method in: public

Re: Validation problem

2005-07-11 Thread Rafael Taboada
Thanks, I got it!... I needed to save the errors :) Rick Thanks for ur advice about using another class to manage JDBC... I'll review that... Do u know any samples about how to do that?.. Thanks again -- Rafael Taboada Software Engineer Cell : +511-97753290 No creo en el destino pues no me

Re: Validation and Display Question

2005-07-08 Thread erikweber
Sorry, I'm not at my home box and I'm also in a hurry or I would have a better answer. I have always done this the hard way -- using a logic:messagesPresent switch beside each field, seeing if a message for that particular property is present, highlighting if it is. It does work but it's a lot

Re: Validation and Display Question

2005-07-08 Thread BHansard
To get the error appear next to the field add the following : html:messages id=error property=FIELD_NAME bean:write name=error / /html:messages to change the text of the field label (if your form is a table) ... td html:messages id=error property=FIELD_NAMEclass=error/html:messages

Re: Validation for select box

2005-06-28 Thread Laurie Harper
Goswami, Raj wrote: I have a Select box which has all the states. The first option is 'Select One.' I need to display an error message if none of the state is selected. I am using DynaActionForm and the xml config file for validation. I put the value of 'Select One' as '-1' and it

Re: Validation while using LookupDispatchAction

2005-06-23 Thread Wendy Smoak
From: Vicky [EMAIL PROTECTED] My action class extends LookupDispatchAction, which has different methods in it. In struts-config.xml i have parameter method as we all know. My problem is; in my validation.xml i do have to perform different validations for different methods, how do I

RE: Validation while using LookupDispatchAction

2005-06-23 Thread Nitish Kumar
I would probably use ValidWhen field property=freeText depends=validwhen arg0 key=myForm.freeText.name/ var var-nametest/var-name var-value(

Re: Validation while using LookupDispatchAction

2005-06-23 Thread Vicky
Wendy, But having different actions in struts-config. how would I call them in my jsp html:form ? because right now I have only one action in jsp html:form action=myAction and then for each button i have property=method.. in jsp in struts-config for this action mapping I have parameter=method

RE: Validation while using LookupDispatchAction

2005-06-23 Thread Mark Galbreath
Your sure did: C#.NET makes stuff like this soo easy! Struts is dead. ~mark -Original Message- From: Vicky [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 2:48 PM But having different actions in struts-config. how would I call them in my jsp html:form ? because right now I

Re: Validation while using LookupDispatchAction

2005-06-23 Thread Wendy Smoak
From: Vicky [EMAIL PROTECTED] But having different actions in struts-config. how would I call them in my jsp html:form ? because right now I have only one action in jsp html:form action=myAction and then for each button i have property=method.. in jsp in struts-config for this action

Re: Validation while using LookupDispatchAction

2005-06-23 Thread Andrew Tomaka
You might be interested in checking out ValidatorLookupDispatchAction (http://struts.whoisandy.com/archives/2005/05/27/validatorlookupdispatchaction.php). I stumbled across, but never actually used it. ~ Andrew Tomaka On 6/23/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Vicky [EMAIL

Re: Validation while using LookupDispatchAction

2005-06-23 Thread Adam Hardy
so struts is dead? we must be haunting you, right? On 23/06/05 19:52nbsp;Mark Galbreath wrote: Your sure did: C#.NET makes stuff like this soo easy! Struts is dead. ~mark -Original Message- From: Vicky [mailto:[EMAIL PROTECTED] Sent: Thursday, June 23, 2005 2:48 PM But having

Re: Validation Anchoring

2005-06-22 Thread Wendy Smoak
From: Dylan Stamat [EMAIL PROTECTED] When validation finds that there are errors, and returns to the form page with displayed errors... I want to anchor to the lower part of the large form page... so, only the errors and the form shows... not the text above. Anybody have any ideas on how to do

<    2   3   4   5   6   7   8   9   10   >