Re: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
I've tried several things, but the form filed is not being validated. Am I doing the nested form attribute right in the validator.xml? josh t <[EMAIL PROTECTED]> wrote: I'm trying to set up a very basic(generic) validation with struts 1.1 (and tiles) and I can not get it to work. I'm not getti

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
My form is extending ValidatorActionForm, not ValidateActionForm. Sorry about that. Extending ValidatorForm instead didn't help. Since I'm not getting any sort of errors, it's very hard to figure out where the issue may reside. "Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote: I am not

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread Chaudhary, Harsh
I am not 100% on this as I don't know the package "org.apache.struts.chain.commands.servlet.ValidateActionForm" very well, but try extending your form from ValidatorForm from: org.apache.struts.validator.ValidatorForm Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Se

Re: Validation Issue

2006-01-30 Thread Karthik Manimaran
I used the latest version of validator jar (commons-validator-1.2.0.jar). I had to update struts.jar also and the TLDs from an earlier version to the latest version for validator to work fine. Now I am getting the following exception. [1/30/06 16:51:29:689 EST] 759dc768 InsertTag E org.apache.st

Re: Validation Issue

2006-01-30 Thread kalpesh modi
Mention the JSP as value to your input attribute. - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.

Re: Validation Issue

2006-01-30 Thread Hubert Rabago
This is what's happening: 1) User submit form with invalid data to /Control.do 2) Struts finds action mapping for /Control.do and sees validate="true" 3) Struts call's the form's validate() 4) validate returns false 5) Since validation fails, Struts forwards to the "input" url 6) Go to step 2 The

Re: Validation Issue

2006-01-29 Thread rama chandrula
problem with Validator. Hope it works for you too. From: Karthik Manimaran <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Validation Issue Date: Sun, 29 Jan 2006 16:42:11 -0500 Hi, I tried this. Using debug info I can see t

Re: Validation Issue

2006-01-29 Thread Paul Benedict
Make your input="something.jsp" - What are the most popular cars? Find out at Yahoo! Autos

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Yes. Tried the same and it works now. I got a different problem now though. The following action results in validation being called recursively resulting in server crash. If I remove the input attribute a server exception is thrown. How can I make a page submit to itself on validat

Re: Validation Issue

2006-01-29 Thread Paul Benedict
I am not saying this is your problem, but I've had times where jar files get seemingly corrupted for no reason. I haven't figured out why but at least twice a year a JAR file just dies on me. Try reinstalling Struts and copy the default validation files out and start from there. Paul

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I get the following error: [1/29/06 17:35:13:701 EST] 4e5645a ValidatorPlug I org.apache.struts.validator.ValidatorPlugIn Loading validation rules file from '/WEB-INF/validator-rules.xml' [1/29/06 17:35:13:721 EST] 4e5645a ServletInstan E SRVE0100E: Did not realize init() exception thrown by serv

Re: Validation Issue

2006-01-29 Thread Paul Benedict
The validation can silently fail if it is not configured correctly. Make sure you have the plug-in correctly configured with the 2 validation files -- one for the validators and the other your validation forms. Also if you upgraded to a new version of Validator your validator configurati

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Hi, I tried this. Using debug info I can see that the validate method is being called. But no errors are being returned. Thanks and regards, Karthik. On 1/29/06, Angelo zerr <[EMAIL PROTECTED]> wrote: > > Hi, > Name of form into validation.xml is the path of your Action > and not the name of yo

Re: Validation Issue

2006-01-29 Thread Richard Yee
Karthik, I don't think you will be able to access your query parameter when you post your form. Your action attribute in your html:form tag should just be /Control Have you looked at the struts-example application? -Richard Karthik Manimaran wrote: Hi, I am using the validator framework f

Re: Validation Issue

2006-01-29 Thread Angelo zerr
Hi, Name of form into validation.xml is the path of your Action and not the name of your Action : Declare in your AplicationResources (see example into validator-rules.xml) errors.required={0} is required. privacyPrefForm.strFirstName=First name Regards Angelo 2006/1/29, Karthik

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
This is the form definition The JSP file is as follows: <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Errors Not Present

Re: Validation Issue

2006-01-29 Thread Richard Yee
What is the form definition for privacyPrefForm? Where is the tag for your strFirstName field in your form? Are you using a debugger at all? -Richard Karthik Manimaran wrote: Hi, I am using the validator framework for form validation. Validation doesnt seem to happen and no error messages a

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I tried subclassing both ValidatorForm and ValidatorActionForm and it still doesnt work. Checked the properties too. I even tried using a custom error message using resource="false" This is always evaluating to true even if I submit the form with errors. Errors Not Present On 1/29/06, Paul Ben

Re: Validation Issue

2006-01-29 Thread Paul Benedict
Make sure you're using the right validator class. The ValidatorForm keys off the formname, ValidatorActionForm keys off the action name. This has happened to me before. Also make sure your properties are named the same. Paul __ Do You Yahoo!? Tir

RE: Re: Validation Issue

2005-09-15 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. > >

Re: Validation Issue

2005-09-15 Thread Laurie Harper
Amol Yadwadkar wrote: Hi List, I am using Validation Framework. property="clientTaxId" depends="required,mask" > mask ${taxid} In the above when mask rule fails it picks up the message against the errors.invalid key in the p

Re: validation issue

2005-03-10 Thread Sivakumar Santharam
Hi If you define validate=false in the struts config file then your form will not be validated when you click either PREV or NEXT buttons. Then if you want to validate on clicking the NEXT button, you can validate the form by explicitely calling the validate method like ActionErrors errors= for

Re: validation issue

2005-03-10 Thread wo_shi_ni_ba_ba
If I understand correctly struts provide both client side and server side validation so that for someone reason a validation error got slipped by the client the server validation would still be able to catch it, am I right? thanks --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > The client side J

Re: validation issue

2005-03-10 Thread wo_shi_ni_ba_ba
thank you --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > The client side JavaScript thats generated includes > a "bCancel" var - which > if set to "true" causes the validation to be > skipped. So for your "previous" > processing, you can just set this variable to "true" > and submit the form. >

Re: validation issue

2005-03-10 Thread Niall Pemberton
The client side JavaScript thats generated includes a "bCancel" var - which if set to "true" causes the validation to be skipped. So for your "previous" processing, you can just set this variable to "true" and submit the form. - Original Message - From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED

Re: validation issue

2005-03-09 Thread wo_shi_ni_ba_ba
thanks that works too. --- Anthony Hong <[EMAIL PROTECTED]> wrote: > If you want to set some value befroe generated > javascript to do validation. > You can wrtie a your own javascript function and > then invoke its > generated function. > > eg: > change jsp page > action="/logon" method="post">

Re: validation issue

2005-03-09 Thread Anthony Hong
If you want to set some value befroe generated javascript to do validation. You can wrtie a your own javascript function and then invoke its generated function. eg: change jsp page write a new function in your own javascript function myFunction(myform) { //set your form value here from hidde

Re: validation issue

2005-03-09 Thread wo_shi_ni_ba_ba
thanks, but I need it to be links to a graphics instead of button, any alternative? --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > Use the tag for your Previous button. > > > On Wed, 9 Mar 2005 15:30:27 -0800 (PST), > wo_shi_ni_ba_ba > <[EMAIL PROTECTED]> wrote: > > dear folks, > > I am using

Re: validation issue

2005-03-09 Thread Hubert Rabago
Use the tag for your Previous button. On Wed, 9 Mar 2005 15:30:27 -0800 (PST), wo_shi_ni_ba_ba <[EMAIL PROTECTED]> wrote: > dear folks, > I am using struts validator framework for both > clientside and serverside validation. On the jsp > page, I have a previous and next button, if the user > cl