Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 9802 invoked from network); 23 Jul 2003 13:46:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 23 Jul 2003 13:46:58 -0000 Received: (qmail 3859 invoked by uid 97); 23 Jul 2003 13:49:32 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 3852 invoked from network); 23 Jul 2003 13:49:31 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 23 Jul 2003 13:49:31 -0000 Received: (qmail 4133 invoked by uid 500); 23 Jul 2003 13:45:46 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 4051 invoked from network); 23 Jul 2003 13:45:45 -0000 Received: from moutng.kundenserver.de (212.227.126.183) by daedalus.apache.org with SMTP; 23 Jul 2003 13:45:45 -0000 Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19fJwB-00011f-00 for struts-user@jakarta.apache.org; Wed, 23 Jul 2003 15:45:47 +0200 Received: from [213.61.132.214] (helo=jevopi.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19fJw9-0001UI-00 for struts-user@jakarta.apache.org; Wed, 23 Jul 2003 15:45:45 +0200 Date: Wed, 23 Jul 2003 15:46:12 +0200 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Has anybody extended the validator framework? From: Jens v.P. To: Struts User Mailing List Content-Transfer-Encoding: 7bit Message-Id: <058BD038-BD14-11D7-BC92-000393D4DBDE@jevopi.de> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, I'm wondering if anybody has already extended the validator framework - to use it in the business layer instead of the controller layer - supporting dynamically loaded/created forms Validating user input is no special struts or web application requirement. In my case, all applications are web applications, but I've got different "applications" based on the same business data (the layout differs). Also, I've got a lot of questionnaires which are going to be implemented as forms. Thus I want to define the validation together with the questionnaire aka form. The validator framework is part of the controller. IMHO in case of questionnaires this is the "wrong" tier - a questionnaire is a business object, and validating the user input must be defined there. Of course, the same validation rules also apply for the validation of the form input. In other words, the questionnaire is the model for the form - the form is the view. So, what I'm looking for is a way to use the validator framework for defining my (business) questionnaires. The questionnaire then "works" as a model providing the validation rules to the view /or controller. I've read (in Chuck Cavaness' book on struts) how to use the validator framework outside struts - but this is not really the point: I want to use it outside and inside at the same time - and (to make it a little bit more interesting) I need also some extensions, e.g. defining question blocks, "super-properties", filters. I've found some questions here before on that or similar topics, so maybe the problem was solved before? Otherwise I'll try to solve this problem - in this case some hints may help a lot :) Jens --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org