Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 6021 invoked from network); 17 Aug 2009 13:28:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Aug 2009 13:28:48 -0000 Received: (qmail 25809 invoked by uid 500); 17 Aug 2009 13:28:52 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 25758 invoked by uid 500); 17 Aug 2009 13:28:52 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 25748 invoked by uid 99); 17 Aug 2009 13:28:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 13:28:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Musomesa@aol.com designates 205.188.105.146 as permitted sender) Received: from [205.188.105.146] (HELO imr-da04.mx.aol.com) (205.188.105.146) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 13:28:38 +0000 Received: from imo-da01.mx.aol.com (imo-da01.mx.aol.com [205.188.169.199]) by imr-da04.mx.aol.com (8.14.1/8.14.1) with ESMTP id n7HDSAwe026372 for ; Mon, 17 Aug 2009 09:28:10 -0400 Received: from Musomesa@aol.com by imo-da01.mx.aol.com (mail_out_v42.5.) id t.c32.5b8c5d3a (55766) for ; Mon, 17 Aug 2009 09:28:06 -0400 (EDT) Received: from smtprly-dc03.mx.aol.com (smtprly-dc03.mx.aol.com [205.188.170.3]) by cia-md05.mx.aol.com (v124.15) with ESMTP id MAILCIAMD057-d3ae4a895ae21c4; Mon, 17 Aug 2009 09:28:06 -0400 Received: from WEBMAIL-MA07 (webmail-ma07.webmail.aol.com [64.12.88.71]) by smtprly-dc03.mx.aol.com (v124.15) with ESMTP id MAILSMTPRLYDC034-d3ae4a895ae21c4; Mon, 17 Aug 2009 09:28:02 -0400 To: user@struts.apache.org Subject: Re: validation Date: Mon, 17 Aug 2009 09:28:02 -0400 X-AOL-IP: 68.212.230.34 In-Reply-To: <6CAD5B965E4ED04D87F4FD7A896337F102D5493C@RMGEXCH01.rmg.be> X-MB-Message-Source: WebUI MIME-Version: 1.0 From: musomesa@aol.com X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CBED55ADF7CF3A_1770_76F0_WEBMAIL-MA07.sysops.aol.com" X-Mailer: AOL Webmail 44148-STANDARD Received: from 68.212.230.34 by WEBMAIL-MA07.sysops.aol.com (64.12.88.71) with HTTP (WebMailUI); Mon, 17 Aug 2009 09:28:02 -0400 Message-Id: <8CBED55ADF30A88-1770-39CE@WEBMAIL-MA07.sysops.aol.com> X-AOL-SENDER: Musomesa@aol.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO ----------MB_8CBED55ADF7CF3A_1770_76F0_WEBMAIL-MA07.sysops.aol.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" ok -- I used as much of your code as you have posted and put a working version at http://pastie.org/585837 Chris -----Original Message----- From: Sandy.Verfaille@roularta.be To: user@struts.apache.org Sent: Mon, Aug 17, 2009 2:09 pm Subject: RE: validation Requiredstring doesn't work neither.. -----Oorspronkelijk bericht----- Van: mailtolouis2020-struts@yahoo.com [mailto:mailtolouis2020-struts@yahoo.com] Verzonden: maandag 17 augustus 2009 14:16 Aan: Struts Users Mailing List Onderwerp: Re: validation how about change your field validator to requiredstring just to check which part of your setting went wrong? ________________________________ From: "Sandy.Verfaille@roularta.be" To: user@struts.apache.org Sent: Monday, August 17, 2009 12:54:04 PM Subject: RE: validation Yes, this is my package declaration in struts.xml: I changed the namespace of my formtag (on the jsp page) into 'shop', according to the package name. But it doesn't help.. -----Oorspronkelijk bericht----- Van: mailtolouis2020-struts@yahoo.com [mailto:mailtolouis2020-struts@yahoo.com] Verzonden: maandag 17 augustus 2009 13:42 Aan: Struts Users Mailing List Onderwerp: Re: validation do you extends="struts-default" in your package? or may be just put this in your package to check ________________________________ From: "Sandy.Verfaille@roularta.be" To: user@struts.apache.org Sent: Monday, August 17, 2009 12:26:45 PM Subject: RE: validation Thx for the reply, I have no interceptors declared in my struts.xml, so I assume i use defaultstack interceptor, or not? Jes, the validation xml is in the same dir as my class. Any other thoughts? -----Oorspronkelijk bericht----- Van: mailtolouis2020-struts@yahoo.com [mailto:mailtolouis2020-struts@yahoo.com] Verzonden: maandag 17 augustus 2009 13:12 Aan: Struts Users Mailing List Onderwerp: Re: validation Are u using defaultStack interceptor? If not u need to make sure validate and workflow interceptor are in your interceptor stack. Another check is are u putting the ProductActions-addProduct-validation.xml in the same directory as your ProductActions.java ? ________________________________ From: "Sandy.Verfaille@roularta.be" To: user@struts.apache.org Sent: Monday, August 17, 2009 11:01:56 AM Subject: validation Hi, I'm trying to add some validation to my fstruts 2 form but it won't work. If I enter for example value '6' in my weight textfield and press 'add', the debugger comes in the method 'addProduct', finishes and returns to products.jsp. There is no message shown as defined in the validation xml. Does someone see what goes wrong? In products.jsp I have the following code: ... ... weight: ... In struts.xml I have: /products.jsp /products.jsp /products.jsp In ProductActions.java i have: public String addProduct(){ return SUCCESS; } In ProductActions-addProduct-validation.xml I have: 0 3 Weight has to be numeric and can't be less than 0. thx! Sandy --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org ----------MB_8CBED55ADF7CF3A_1770_76F0_WEBMAIL-MA07.sysops.aol.com--