[OT] RE: validate() method is ActionForm

2003-02-13 Thread Rabih Yazbeck
Bravo Mr Smart man... It is much easier for you to just ignore the question, instead of attack people .. and everyone will be happy .. -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: 13 February 2003 20:42 To: Struts Users Mailing List Subject: RE: validate

[Validator] how to Validate DATE? it doesn't work ... HELP me PLS.

2003-02-12 Thread michael . korolyov
Hello, my date validation doesn't work on client (jsp) side. I need validate date in MM/dd/yy format. in validation.xml : formset form name=financeChartForm field property=startDate depends=required,date arg0 key=prompt.startDate

Re: how to Validate DATE?

2003-02-12 Thread Joey Ebright
//resources/article.jsp?l=StrutsInAction [EMAIL PROTECTED] wrote: Hello, my date validation doesn't work on client (jsp) side. I need validate date in MM/dd/yy format. in validation.xml : formset form name=financeChartForm field property=startDate depends=required

how to Validate DATE?

2003-02-11 Thread michael . korolyov
Hello, my date validation doesn't work on client (jsp) side. I need validate date in MM/dd/yy format. in validation.xml : formset form name=financeChartForm field property=startDate depends=required,date arg0 key=prompt.startDate

Getting Request Parameters After validate()

2003-02-03 Thread Vinh Tran
All: I am having problems retrieving request values after submitting a form that goes through validate(). Below is an example. Please help! In the example below I have an action that shows the form using MyEditAction with no validation (request values work fine). After submitting the form

Re: Getting Request Parameters After validate()

2003-02-03 Thread Nicolas De Loof
. Nico. All: I am having problems retrieving request values after submitting a form that goes through validate(). Below is an example. Please help! In the example below I have an action that shows the form using MyEditAction with no validation (request values work fine). After submitting

RE: Getting Request Parameters After validate()

2003-02-03 Thread Vinh Tran
path=/myEditAction type=com.foo.bar.actions.MyEditAction name=myEditForm input=/testform.jsp validate=true forward name=success path=/success.jsp/ /action Am I completely off and stand corrected? Vinh -Original Message- From: Nicolas De Loof [mailto

Re: Getting Request Parameters After validate()

2003-02-03 Thread Nicolas De Loof
below that would be com.foo.bar.actions.MyEditAction. In which case my test attribute should be availble in MyEditAction. action path=/myEditAction type=com.foo.bar.actions.MyEditAction name=myEditForm input=/testform.jsp validate=true forward name=success path=/success.jsp/ /action Am I

RE: Getting Request Parameters After validate()

2003-02-03 Thread Vinh Tran
Thanks for clearing that up Nico. That makes complete sense. I did notice that Request is available in the validate() method in which case I should be able to set my request parameters within validate(). Do you know if this is NOT a good way to forward request attributes if validation errors

Re: Getting Request Parameters After validate()

2003-02-03 Thread Nicolas De Loof
validate() to put datas back into request scope is not a nice way to ensure JSP is able to display. But I don't know your project constraints, so it could be a solution. I just recommend not mixing session/request scopes handling and validation code, as validate() allow you to concentrate controls into one

server side validation validate all fields?

2003-01-29 Thread Ginger Cheng
Hello, I have a question about the server side validation implemented by 'beta3'. When it kicks in, it validates all the fields of the form even though some fields I didn't ask for validation in my validation.xml. Like some fields I didn't let them depend on required in validation.xml, but

Re: server side validation validate all fields?

2003-01-29 Thread Ginger Cheng
One more thing I want to add is: I defined the fields to be dependent on 'mask' and 'maxlength' in validation.xml, but it turns out that the fields is required from server side validation. At 11:49 AM 1/29/2003 -0500, you wrote: Hello, I have a question about the server side validation

DynaValidatorForm with validate()

2003-01-29 Thread Susan Bradeen
Can you override (or supplement?) a DynaValidatorForm with a form bean, and use the validate() method along with the validations specified in the validation.xml? I can display my validation.xml errors, but not any from my validate() method. It appears to bypass it and go right to the 'success

RE: DynaValidatorForm with validate()

2003-01-29 Thread Sri Sankaran
Did you try setting the type attribute of the form-bean to full.qualified.ProfileForm? Sri -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 2:44 PM To: [EMAIL PROTECTED] Subject: DynaValidatorForm with validate() Can you

RE: DynaValidatorForm with validate()

2003-01-29 Thread Susan Bradeen
with validate() Did you try setting the type attribute of the form-bean to full.qualified.ProfileForm? Sri -Original Message- From: Susan Bradeen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 2:44 PM To: [EMAIL PROTECTED] Subject: DynaValidatorForm with validate

Validator won't validate single required field

2003-01-24 Thread Wendy Smoak
=edu.asu.vpia.struts.ChooseProfileForm/ actionpath=/chooseProfile type=edu.asu.vpia.struts.ChooseProfileAction name=chooseProfileForm scope=request validate=true input=choose.profile forward name=success path

Re: Validator won't validate single required field

2003-01-24 Thread David Graham
Does your form subclass ValidatorForm? Does javascript validation work? David From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Validator won't validate single required field Date: Fri, 24

RE: Validator validates on first form display (was RE: Validator won' t validate single required field)

2003-01-24 Thread Pani, Gourav
To: 'Struts Users Mailing List' Subject: Validator validates on first form display (was RE: Validator won' t validate single required field) I wrote: I know I'm missing something, because the struts-validator example provided with 1.1b3 works fine. I think I found what's wrong... ChooseProfileForm

RE: Validator won't validate single required field

2003-01-24 Thread Wendy Smoak
Does your form subclass ValidatorForm? Does javascript validation work? That was the problem, thanks. Only now [see other message] I'm getting the error the very first time the form is displayed. It needs to not show the error until the user has had a chance to submit the form. -- Wendy

RE: Validator validates on first form display (was RE: Validator won't validate single required field)

2003-01-24 Thread Wendy Smoak
You are probably linking directly to your ActionClass mapping. You can avoid this by going to your JSP first instead of your Action mapping. Don't know if that made sense or not. Yes, but I can't do that because the JSP's are under WEB-INF for the express purpose of preventing people from

RE: Validator validates on first form display (was RE: Validator won' t validate single required field)

2003-01-24 Thread Pani, Gourav
validate single required field) You are probably linking directly to your ActionClass mapping. You can avoid this by going to your JSP first instead of your Action mapping. Don't know if that made sense or not. Yes, but I can't do that because the JSP's are under WEB-INF for the express

RE: Validator won't validate single required field

2003-01-24 Thread David Graham
You probably forgot to say validate=false in your action mapping for whatever action is initially displaying the page. David From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Validator

RE: Validator won't validate single required field

2003-01-24 Thread Wendy Smoak
You probably forgot to say validate=false in your action mapping for whatever action is initially displaying the page. Only one action displays the page: ChooseProfileAction, mapped as: actionpath=/chooseProfile type=edu.asu.vpia.struts.ChooseProfileAction

RE: Validator won't validate single required field

2003-01-24 Thread David Graham
PROTECTED] Subject: RE: Validator won't validate single required field Date: Fri, 24 Jan 2003 12:57:39 -0700 You probably forgot to say validate=false in your action mapping for whatever action is initially displaying the page. Only one action displays the page: ChooseProfileAction, mapped

Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Wendy Smoak
You wouldn't want to hit the JSP first anyways ;-). It was suggested by another person here and I just wanted to rule it out in case it was your next suggestion. :) I believe both of your thoughts will work but I would try the separate action mapping idea first. I did, and it works,

Re: Validator validates too early (was RE: Validator won't validate singlerequired field)

2003-01-24 Thread David Graham
PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Validator validates too early (was RE: Validator won't validate single required field) Date: Fri, 24 Jan 2003 15:06:09 -0700 You wouldn't want to hit the JSP first anyways ;-). It was suggested by another person here and I just

Re: Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Micha Postupalski
On 1/24/2003 11:49 PM, Wendy Smoak wrote: /*only validate if the form has actually been submitted. We can tell this by checking to see if the Submit button is in the request */ if (request.getParameter(Submit) != null) { return super.validate( mapping

Re: Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Micha Postupalski
Interesting... would equalsIgnoreCase be more appropriate, or are you sure it'll always be in upper case? My jsp currently has: html-el:form action=/chooseProfile which turns into: form name=chooseProfileForm method=post action=/bendev/chooseProfile.do so I'm guessing that 'post' will be

Re: Validator validates too early (was RE: Validator won't validate single required field)

2003-01-24 Thread Micha Postupalski
because request.getMethod() returns HTTP method and request.getMethod().toString() is always uppercase sorry, my mistake, request.getMethod().toString() is a nonsense because request.getMethod() is type of java.lang.String.I'm too sleepy ;-((( plastic -- To unsubscribe, e-mail:

Find message resources file from form bean (validate) - methoddepricated!

2003-01-21 Thread Linnéa Ahlbeck
Hi! I have a problem finding a new way to find my resources file from the form bean. The code I have been used so far in my validate method is the following: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors

exception handling in actionForm validate method

2003-01-21 Thread Rick Kern
In the validate method of my actionForm I am using the Jakarta regular expression api to validate user input. In the method I use a try catch block when creating a RE (regular expression pattern) object. In the event an exception is thrown the catch block will catch the exception-- but how

Re: exception handling in actionForm validate method

2003-01-21 Thread Ben Starr
In the validate method of my actionForm I am using the Jakarta regular expression api to validate user input. In the method I use a try catch block when creating a RE (regular expression pattern) object. In the event an exception is thrown the catch block will catch the exception-- but how

Re: exception handling in actionForm validate method

2003-01-21 Thread Giri Alwar
In the validate method of my actionForm I am using the Jakarta regular expression api to validate user input. In the method I use a try catch block when creating a RE (regular expression pattern) object. In the event an exception is thrown the catch block will catch the exception

validate

2003-01-20 Thread ambroz
Hello, I have run into problems while using validate funkcion. If the function validates false I add actionError to the list. But the struts doesn't display the same page. Instead it tries to display page with name /action.do, where action is action parametr form html.form tag. With this action

RE: validate

2003-01-20 Thread Sri Sankaran
I assume that you are referring to the ActionForm class' validate() method. If so, you *must* further have specified an 'input' attribute for the action mapping in question. The framework will forward the request to the path that is the value of the 'input' attribute. So, if you have action

Using validate() along with commons-validator

2003-01-16 Thread Pani, Gourav
I am not using DynaForms currently. If I stay with my Form beans extending ValidatorForm, is there any way to call the validate() method and use the validator.xml at the same time. For example, I have the following Form bean. public class LoginForm extends ValidatorForm implements

Re: Using validate() along with commons-validator

2003-01-16 Thread Giri Alwar
In your example below, you need to call super.validate(...) in the overridden validate method so that the validate method in ValidatorForm is called. The validate method in ValidatorForm is the one that does the form validation based on validation.xml and validator-rules.xml. Here is an example

how do i validate number of check box selected by user in DynaValidatorForm

2003-01-10 Thread Ashish Kulkarni
Hi, I am using DynaValidatorForm, and i want to validate number of check boxes selected by the user, for example to display details, user must select atleast one checkbox on the the main page before clicking display details button, or user must select only one check box for specific operation

Repopulating a form after an error in Validate

2003-01-06 Thread Samir Shah
Hi I have a very frustrating problem. I have a form where I use a bean to prefill a form with a record, the data for which is obtained from a Javabean in the request object. Once a user is completed, I use the validate functionality in the ActionForm to see if the required fields were entered

RE: Repopulating a form after an error in Validate

2003-01-06 Thread Sri Sankaran
-Original Message- From: Samir Shah [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:23 AM To: [EMAIL PROTECTED] Subject: Repopulating a form after an error in Validate Hi I have a very frustrating problem. I have a form where I use a bean to prefill a form

Re: Repopulating a form after an error in Validate

2003-01-06 Thread Rick Reumann
name=employeeFormBean scope=request validate=true parameter=dispatch input=/WEB-INF/jsp/employee/employeeViewNonHomeStore.jsp forward name=continue path=/employee/displayEmployees.jsp/ /action

Re: Repopulating a form after an error in Validate

2003-01-06 Thread Samir Shah
Ok, here are the relevant pieces of information !-- Step 1 Action, this takes you to form to edit -- actionpath=/gotoStep1 type=com.fdl.quoteweb.GotoStep1Action scope=request validate=true input=/quoteweb/welcome.jsp

Re[2]: Repopulating a form after an error in Validate

2003-01-06 Thread Rick Reumann
SSvalidate=true SSinput=/quoteweb/welcome.jsp SSforward name=success SS path=/quoteweb/step1.jsp/ SSforward name=failure SS path=/quoteweb/welcome.jsp/ SS /action That's the problem (I believe) above. I don't see you tying

2nd field doesn't validate, first one does

2003-01-02 Thread Michelle Harris
Hi all, I've been trying to get data validation working. Many thanks for earlier responses. I did get a sample login app up and running. However, the oddest thing happens. The first field, username, validates correctly. However, the second one, password, doesn't validate at all. I'm including

Difficulties with form bean validate() for pre-populated form beans

2002-12-29 Thread mech
Hi, I'm using Struts 1.1b and one part of my webapp is a registration page for new users. I have to say that this thing works already somehow, but not really as I'd like to have it. Currently I'm not using the validate() method in my form bean and I'm doing all form validation in the action

RE: Difficulties with form bean validate() for pre-populated form beans

2002-12-29 Thread VEDRE, RANAPRATAP REDDY
or the sample chapter about validation available at http://www.manning.com/husted/chap12.pdf. -Rana. -Original Message- From: mech To: [EMAIL PROTECTED] Sent: 12/29/2002 11:33 AM Subject: Difficulties with form bean validate() for pre-populated form beans Hi, I'm using Struts 1.1b and one

validate one field in multipage

2002-12-18 Thread david chan
Hi, I am using Struts-1.1b2 client side validator. And I have a big form for multipage user input. One of the field need to validated in page 1 and 2. But I don't see how can I do that, or does anyone know how to do it? Here is my config: validator.xml: field property=firstnm

Re: validate one field in multipage

2002-12-18 Thread Derek Lin
] Sent: Wednesday, December 18, 2002 12:01 PM Subject: validate one field in multipage Hi, I am using Struts-1.1b2 client side validator. And I have a big form for multipage user input. One of the field need to validated in page 1 and 2. But I don't see how can I do that, or does anyone know

validate

2002-12-16 Thread jenny zhang
Hi: This might not be the right place to post the message. But if someone can help me here, I appreciate it. I have a text field that can be ANY characters. Which method should I call to validate it? I don't think I should call isLetterOrDigit(char ch), because letter means a-zA-Z. but character

RE: validate

2002-12-16 Thread Yee, Richard K,,DMDCWEST
Jenny, If your input can contain ANY characters then what do you need to validate for? Why don't you just check for an empty string? Am I missing something here? -Richard -Original Message- From: jenny zhang [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 1:47 PM

RE: validate

2002-12-16 Thread jenny zhang
: Jenny, If your input can contain ANY characters then what do you need to validate for? Why don't you just check for an empty string? Am I missing something here? -Richard -Original Message- From: jenny zhang [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002

Re: validate

2002-12-16 Thread Khalid K.
if text field accepts any character (which includes, newline/cr, blank, tab, etc) all you need to validate is if object returned is null example: in u request object, you stored a parameter x with value y, you can check... if (x == null) error, else move on... since your text field can take

Re: validate

2002-12-16 Thread Eddie Bush
I'd at least check for ((x != null) (!.equals(x.trim( for required (String) fields. ... better yet, use the StrutsValidator. That'll make it a lot easier on ya. Khalid K. wrote: if text field accepts any character (which includes, newline/cr, blank, tab, etc) all you need to validate

RE: validate

2002-12-16 Thread Yee, Richard K,,DMDCWEST
) Regards, Richard -Original Message- From: jenny zhang [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 2:05 PM To: Struts Users Mailing List Subject: RE: validate Richard: Thank you for your reply. I might misunderstand character. letter is a-zA-Z, right

Re: validate

2002-12-16 Thread Jenny
Richard, Eddie, Khalid. Thank you very much for giving me so clear explanation. Jenny - Original Message - From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, December 16, 2002 5:30 PM Subject: RE: validate Jenny, Yes

Validate - Struts-Config.xml - input attribute

2002-12-13 Thread Edgar P. Dollin
Has anyone ever asked for the ability to control the input attribute, i.e. for validation in a multipage form? Edgar To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

validate() almost working.....

2002-11-27 Thread Jim Bruno Goldberg
My code is aslmost working Validation and messages are ok. Now I need to solve one more problem When these validate function returns some errors, and forward back to form,jsp, the fields are empty. Follow I put the code, the page and the struts-config. Whats wrong

Re: validate() is working !!!!! Thanks Patrice!

2002-11-27 Thread Jim Bruno Goldberg
:  with: html:form action=UserForm Regards Patrice - Original Message - From: Jim Bruno Goldberg [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 27, 2002 5:36 PM Subject: validate() almost working. My code is aslmost working

RE: delay user input validate....

2002-11-26 Thread Vipul Sanghi
validate Hi, All: I have a problem related to user input validation. I searched on the web, it seems that I couldn't get a clue. Hopefully, you can help me out. I have two screens: screen1 and screen2. The two screens are used for new user registration. On screen1, there are three fields

delay user input validate....

2002-11-24 Thread Doug Dates
Hi, All: I have a problem related to user input validation. I searched on the web, it seems that I couldn't get a clue. Hopefully, you can help me out. I have two screens: screen1 and screen2. The two screens are used for new user registration. On screen1, there are three fields: userName,

optionsCollection error Failed to obtain specified collectionafter unsuccessful validate()

2002-11-14 Thread adam kramer
I'm using the Struts nightly build from nov. 13. Initially I populate an ArrayList in a Validator form in an Action with authentication types for a login screen. In the jsp page, the authentication types are displayed with an optionsCollection tag: html:select property=authType

1.1b2 - validate() form method gives blank screen when errors present

2002-11-13 Thread Mark Leonard
Greetings, I am having a problem where a blank screen is presented instead of redirecting the user back to the input attribute if the validate() method returns errors. If validate() finds no errors or if i set validate=false for the action, processing is ok with successful redirection

Validate form with tiles.

2002-11-08 Thread Roland Carlsson
Hi! I found a difference when running a page within a tiles definition and not. The problem is the validatation. When running with tiles it validates when no parameters are sent, it acts as if the form was submited when one views the page for the first time and presents the validation-errors since

RE: Validate and nightly build problem

2002-11-08 Thread Fabrice BLANQUART
with the language fr, it's work. I have also the problem with my IE6 with locale : language=en. Rgs Fabrice -Message d'origine- De : Robert Leland [mailto:rleland;apache.org] Envoyé : jeudi 7 novembre 2002 18:04 À : Struts Users Mailing List Objet : Re: Validate and nightly build problem

RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
, Michael -Original Message- From: Fabrice BLANQUART [mailto:fblanquart;covefi.com] Sent: Freitag, 8. November 2002 12:23 To: [EMAIL PROTECTED] Subject: RE: Validate and nightly build problem Hi, I join to this mail the jsp file that cause the problem and the validator.xml. Continuing

Re: Validate and nightly build problem

2002-11-08 Thread Rob Leland
Michael Delamere wrote: Hi, I posted a problem yesterday concerning validating forms in several sub-apps, whereby it only seemed to work for one and not all... this was using struts1.1b2. As suggested, I downloaded the nightly build that you tried today and now validation doesn´t seem to work

RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
List Subject: Re: Validate and nightly build problem Michael Delamere wrote: Hi, I posted a problem yesterday concerning validating forms in several sub-apps, whereby it only seemed to work for one and not all... this was using struts1.1b2. As suggested, I downloaded the nightly build

Re: Validate and nightly build problem

2002-11-08 Thread Robert Leland
Michael Delamere wrote: Yes, I copied all of the files into my WEB-INF/lib folder If there is any more information you need, I will be glad to provide it Yes, Does the struts-validator example work ? -Rob -- To unsubscribe, e-mail:

RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
Message- From: Robert Leland [mailto:rleland;apache.org] Sent: Freitag, 8. November 2002 16:45 To: Struts Users Mailing List Subject: Re: Validate and nightly build problem Michael Delamere wrote: Yes, I copied all of the files into my WEB-INF/lib folder If there is any more information you

Re: Validate and nightly build problem

2002-11-08 Thread Rob Leland
Michael Delamere wrote: I tried the registration and to me it seemed not to work Unless of course it is normal behaviour that when leaving the fields blank that it takes me to the start screen Yes, that is the behavior. If the field MUST be filled in then in your validator.xml you

validate() in ActionForms

2002-11-07 Thread Reinhard Spisser
() in session - forward to /jsp/user/modify/jsp. After the user modifies some data and submits the form, the validate() is called. As expected, struts shows the form if some errors occured; but the form is not filled in with the latest modifications from the user. Struts shows the form with the values

Validate and nightly build problem

2002-11-07 Thread Fabrice BLANQUART
Hi, I have a strange behaviour with the validator using the nightly build (20021107). I use the html:javascript tag in order to make client validation. It work well with the 1.1B2 but when I use the nightly build it doesn't generate the validateXXX javascript function. Debugging with source of

Re: Validate and nightly build problem

2002-11-07 Thread Robert Leland
Fabrice BLANQUART wrote: Hi, I have a strange behaviour with the validator using the nightly build (20021107). I use the html:javascript tag in order to make client validation. It work well with the 1.1B2 but when I use the nightly build it doesn't generate the validateXXX javascript function.

How to validate manually?

2002-11-07 Thread Wendy Smoak
Because I need to allow the user to come and go from the form before the final submit, I need to hold off on validation until that point. So I've got validate=false (that was a gotcha!) in the action tag and I'm now in my LookupDispatchAction doing the validation manually: How does this look

Re: How to validate manually?

2002-11-07 Thread Kris Schneider
Check out Action.saveErrors for saving the errors returned from your call to validate: saveErrors(request, null); // clear current errors if you want ActionErrors er = form.validate(mapping, request); if ((er != null) (!er.isEmpty())) { saveErrors(request, er); forward = new ActionForward

Re: How to validate manually?

2002-11-07 Thread Kris Schneider
returned from your call to validate: saveErrors(request, null); // clear current errors if you want ActionErrors er = form.validate(mapping, request); if ((er != null) (!er.isEmpty())) { saveErrors(request, er); forward = new ActionForward(mapping.getInput()); } Quoting Wendy Smoak

RE: How to validate manually?

2002-11-07 Thread Wendy Smoak
Kris wrote: Check out Action.saveErrors for saving the errors returned from your call to validate: saveErrors(request, null); // clear current errors if you want ActionErrors er = form.validate(mapping, request); if ((er != null) (!er.isEmpty())) { saveErrors(request, er); forward = new

Re: ApplicationResources from within ActionForm's validate()??

2002-10-18 Thread Eddie Bush
I'm sorry, Jeff, I thought you were talking about from within the Action. The action is where you should be dealing with properties. The ActionForm is just ... Well you could think about it like a piece of copper. Electricity is commonly transferred from one place to another over copper

ApplicationResources from within ActionForm's validate()??

2002-10-18 Thread Jeff_Mychasiw
I am using 1.1b2 I have searched for this question but have found many similar questions but no satisfactory answer. It appears that using : MessageResources msg = this.getServlet().getResources() inside the action for will work, but it is deprecated. What is the cleanest way to do this? I am

Re: ApplicationResources from within ActionForm's validate()??

2002-10-18 Thread Eddie Bush
Have you tried the javadocs yet? -- Eddie Bush -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: ApplicationResources from within ActionForm's validate()??

2002-10-18 Thread Jeff_Mychasiw
from within ActionForm's validate()?? Have you tried the javadocs yet? -- Eddie Bush -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts

RE: ApplicationResources from within ActionForm's validate()??

2002-10-18 Thread James Mitchell
- From: [EMAIL PROTECTED] [mailto:Jeff_Mychasiw;nlgroup.ca] Sent: Thursday, October 17, 2002 4:12 PM To: [EMAIL PROTECTED] Subject: ApplicationResources from within ActionForm's validate()?? I am using 1.1b2 I have searched for this question but have found many similar questions

formbean setup validate method

2002-10-18 Thread Daniel Haynes
We have a formbean (CreateUser) which we want to do basic validation on the fields (not null/empty) so validation is set to true within the CreateUser action config. However when this action is first called to set up the form we don't want the validation to occur because there is nothing in the

Re: ApplicationResources from within ActionForm's validate()??

2002-10-18 Thread Jeff_Mychasiw
Thanks for the reply. I agree with your analogy, but I would like to do some date validation in the forms validate method like this: if(!ValUtils.isDate(this.papDate,dd-MMM-yy)){ errors.add(papDate, new ActionError(validation.field.shortDate, PAP Date)); } we use the key

help on validate attribute

2002-10-10 Thread Billy Ng
Hi folks, If I put validate=true in the action tag, the form will be validated once it is load. Is it a right behavior? Since there is no data in the form bean, some madatory fields that I specify in the validate method will be treated as error. How should I handle it? Billy Ng

Re: help on validate attribute

2002-10-10 Thread Antoni Reus
Hi, A Dijous 10 Octubre 2002 19:43, Billy Ng va escriure: Hi folks, If I put validate=true in the action tag, the form will be validated once it is load. Is it a right behavior? Since there is no data in the form bean, some madatory fields that I specify in the validate method

[Validator HOW-TO] Invoking Validator validate method fromOverrd den validate method

2002-10-01 Thread Jerry Jalenak
. The problem I have is that the validation is being performed regardless of the button being clicked. So I thought, just override the validate method, check the button value, and if it is Submit, go ahead and let Validator do its thing, otherwise don't. The question I can't seem to answer is, how do I

RE: [Validator HOW-TO] Invoking Validator validate method fromOv errd den validate method

2002-10-01 Thread Jerry Jalenak
OK, figured it out (if anyone is interested). After digging around in the DynaValidatorActionForm source a little, I tried the following: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ServletContext context = getServlet

Distinct case in validate() with a form used in several page

2002-09-26 Thread Vincent Berruchon
I'd like to use an actionFormBean with a few JSP form page. But I'll have to treat different cases in the validate of my actionFormBean... So in validate(), I was thinking about looking at the name of the input JSP with ActionMapping.getInput() ( or perhaps the name of the current action

Re: Distinct case in validate() with a form used in several page

2002-09-26 Thread Jim Young
] Subject: Distinct case in validate() with a form used in several page Date: Thu, 26 Sep 2002 16:35:06 +0200 I'd like to use an actionFormBean with a few JSP form page. But I'll have to treat different cases in the validate of my actionFormBean... So in validate(), I was thinking about looking

RE: Distinct case in validate() with a form used in several page

2002-09-26 Thread Robert Taylor
which routines get called. robert -Original Message- From: Vincent Berruchon [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 10:35 AM To: Struts Users Mailing List Subject: Distinct case in validate() with a form used in several page I'd like to use

Can't get Validator to validate required ... what am I missing?

2002-09-24 Thread Kilmer, Erich
a validate method. It contains two string fields name and number. In the Struts config file I have added the plug-in: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathname value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in In my

Re: Can't get Validator to validate required ... what am I missing?

2002-09-24 Thread Vilya Harvey
: Tuesday, September 24, 2002 2:47 PM Subject: Can't get Validator to validate required ... what am I missing? I recently downloaded the latest Struts 1.1b2 and I am trying to get the validator working. I did drop the struts validator war into Weblogic and it validates fine. In my test, I did

Is it possible to validate a group of checkboxes using the validator

2002-09-20 Thread Matt Raible
I have a bunch of checkboxes (filters) on a search screen. I want to make sure the user selects at least one of these boxes before continuing - is this possible to configure/do with the Validator Plug-In? I'm using Struts 1.1B2. Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Is it possible to validate a group of checkboxes using the validator

2002-09-20 Thread Galbreath, Mark
I'm not familiar with Validator, but you could certainly check the Request object in your associated Action class. Mark -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 2:49 AM I have a bunch of checkboxes (filters) on a search screen. I

[ActionForm] Returning from validate routine

2002-09-10 Thread Jerry Jalenak
Hi All, In a validate routine, if a non-null ActionErrors object is returned, struts returns to the 'page' identified on the input parameter in the action-mapping for the action. I need to return to a dynamically determined 'page'. Is this possible? If so, what has to be overridden to make

Re: [ActionForm] Returning from validate routine

2002-09-10 Thread Jim Crossley
: [ActionForm] Returning from validate routine Hi All, In a validate routine, if a non-null ActionErrors object is returned, struts returns to the 'page' identified on the input parameter in the action-mapping for the action. I need to return to a dynamically determined 'page

RE: [ActionForm] Returning from validate routine

2002-09-10 Thread Jerry Jalenak
Jim, Thanks! I was about 1/2 way there - forget to add the .do to the reference. Jerry -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 12:55 PM To: Struts Users Mailing List Subject: Re: [ActionForm] Returning from validate

Re: DB hit from ActionForm Validate method

2002-09-07 Thread adam kramer
It's not common practice to put business-data validation in the form beans validate method, since this belongs in the data object (or controller/service tier), so you should move that into the action class or data object classes, and then you can use the database to update and retrived login

DB hit from ActionForm Validate method

2002-09-06 Thread Cohan, Sean
We need to implement '3 strikes and your out' functionality to our logon process. If the user is unsuccessful after 3 logon attempts, we disable their account. I put some of the user id / password functionality in the validate method of the LogonForm class. However, in between each attempt, I

<    1   2   3   4   5   >