Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 20719 invoked by uid 500); 15 Jun 2001 11:49:31 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 20701 invoked by uid 500); 15 Jun 2001 11:49:29 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 15 Jun 2001 11:49:28 -0000 Message-ID: <20010615114928.20694.qmail@apache.org> From: dims@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/webapp cocoon.xconf dims 01/06/15 04:49:27 Modified: src/org/apache/cocoon Constants.java src/org/apache/cocoon/acting AbstractValidatorAction.java FormValidatorAction.java SessionValidatorAction.java src/org/apache/cocoon/components/language/markup/xsp XSPGenerator.java src/org/apache/cocoon/components/language/markup/xsp/java esql.xsl src/org/apache/cocoon/util IOUtils.java PostInputStream.java webapp cocoon.xconf Added: src/org/apache/cocoon/acting ConfigurationHelper.java ValidatorActionHelper.java ValidatorActionResult.java src/org/apache/cocoon/components/language/markup/xsp XSPFormValidatorHelper.java src/org/apache/cocoon/components/language/markup/xsp/java form-validator.xsl src/org/apache/cocoon/util EnumerationFactory.java Log: Contribution for Form Validation LogicSheet, Actions, Helpers from Christian Haul Revision Changes Path 1.6 +12 -9 xml-cocoon2/src/org/apache/cocoon/Constants.java Index: Constants.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/Constants.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Constants.java 2001/06/14 15:11:01 1.5 +++ Constants.java 2001/06/15 11:49:18 1.6 @@ -10,7 +10,7 @@ /** * @author Stefano Mazzocchi - * @version CVS $Revision: 1.5 $ $Date: 2001/06/14 15:11:01 $ + * @version CVS $Revision: 1.6 $ $Date: 2001/06/15 11:49:18 $ */ public interface Constants { @@ -35,14 +35,17 @@ String PARSER_PROPERTY = "org.apache.cocoon.components.parser.Parser"; String DEFAULT_PARSER = "org.apache.cocoon.components.parser.JaxpParser"; - String XSP_PREFIX = "xsp"; - String XSP_URI = "http://apache.org/xsp"; - String XSP_REQUEST_PREFIX = "xsp-request"; - String XSP_REQUEST_URI = XSP_URI + "/request/2.0"; - String XSP_RESPONSE_PREFIX = "xsp-response"; - String XSP_RESPONSE_URI = XSP_URI + "/response/2.0"; - String XSP_COOKIE_PREFIX = "xsp-cookie"; - String XSP_COOKIE_URI = XSP_URI + "/cookie/2.0"; + String XSP_PREFIX = "xsp"; + String XSP_URI = "http://apache.org/xsp"; + String XSP_REQUEST_PREFIX = "xsp-request"; + String XSP_REQUEST_URI = XSP_URI + "/request/2.0"; + String XSP_RESPONSE_PREFIX = "xsp-response"; + String XSP_RESPONSE_URI = XSP_URI + "/response/2.0"; + String XSP_COOKIE_PREFIX = "xsp-cookie"; + String XSP_COOKIE_URI = XSP_URI + "/cookie/2.0"; + String XSP_FORMVALIDATOR_PATH = "org.apache.cocoon.acting.FormValidatorAction.results"; + String XSP_FORMVALIDATOR_PREFIX = "xsp-formval"; + String XSP_FORMVALIDATOR_URI = Constants.XSP_URI + "/form-validator/2.0"; String XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace"; 1.5 +198 -218 xml-cocoon2/src/org/apache/cocoon/acting/AbstractValidatorAction.java Index: AbstractValidatorAction.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/AbstractValidatorAction.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- AbstractValidatorAction.java 2001/05/31 17:37:38 1.4 +++ AbstractValidatorAction.java 2001/06/15 11:49:19 1.5 @@ -1,4 +1,4 @@ -// $Id: AbstractValidatorAction.java,v 1.4 2001/05/31 17:37:38 bloritsch Exp $ +// $Id: AbstractValidatorAction.java,v 1.5 2001/06/15 11:49:19 dims Exp $ package org.apache.cocoon.acting; import org.apache.avalon.framework.configuration.Configurable; @@ -11,6 +11,10 @@ import java.util.Map; +import org.apache.cocoon.acting.ValidatorActionResult; +import org.apache.cocoon.acting.ValidatorActionHelper; +import org.apache.avalon.framework.configuration.ConfigurationException; + /** * Abstract implementation of action that needs to perform validation of * parameters (from session, from request, etc.). All `validator' actions @@ -98,7 +102,7 @@ * * * @author Martin Man <Martin.Man@seznam.cz> - * @version CVS $Revision: 1.4 $ $Date: 2001/05/31 17:37:38 $ + * @version CVS $Revision: 1.5 $ $Date: 2001/06/15 11:49:19 $ */ public abstract class AbstractValidatorAction extends AbstractComplementaryConfigurableAction @@ -116,12 +120,8 @@ * (as taken from HTTP request for example) or wheteher it should be * regular instance of java.lang.Double, java.lang.Long, etc. * @return The validated parameter. - * FIXME: should be reworked so that validation returns something - * meaningfull in case the parameter is nullable and really is null (which - * is o.k.) but returns null. Workaround for now is that empty string is - * returned for nullable strings and -1 for numbers. */ - public Object validateParameter (String name, Configuration constraints, + public ValidatorActionHelper validateParameter (String name, Configuration constraints, Configuration[] conf, Map params, boolean is_string) { String type = null; int i = 0; @@ -175,33 +175,37 @@ * Validates nullability and default value for given parameter. If given * constraints are not null they are validated as well. */ - private Object validateString (String name, Configuration constraints, + private ValidatorActionHelper validateString (String name, Configuration constraints, Configuration conf, Map params, boolean is_string) { Object param = params.get (name); String value = null; + String dflt = getDefault (conf); + boolean nullable = getNullable (conf); + getLogger().debug ("VALIDATOR: validating string parameter " + name + " (encoded in a string: " + is_string + ")"); value = getStringValue (name, conf, param, is_string); if (value == null) { getLogger().debug ("VALIDATOR: string parameter " + name + " is null"); - return null; + if ( !nullable ){ + ValidatorActionHelper vah = new ValidatorActionHelper ( value, ValidatorActionResult.ISNULL ); + return new ValidatorActionHelper ( value, ValidatorActionResult.ISNULL );} + else + value = dflt; } if (constraints != null) { String eq = constraints.getAttribute ("equals-to", ""); String eqp = constraints.getAttribute ("equals-to-param", ""); String regex = conf.getAttribute ("matches-regex", ""); - String tmp = constraints.getAttribute ( "matches-regex", null); - if ( tmp != null ) regex = tmp; + regex = constraints.getAttribute ( "matches-regex", regex); + + Long minlen = getAttributeAsLong (conf, "min-len", null); + minlen = getAttributeAsLong (constraints, "min-len", minlen); - String minlen = conf.getAttribute ("min-len",""); - tmp = constraints.getAttribute ("min-len",null); - if ( tmp != null ) minlen = tmp; - - String maxlen = conf.getAttribute ("max-len",""); - tmp = constraints.getAttribute ("max-len",null); - if ( tmp != null ) maxlen = tmp; + Long maxlen = getAttributeAsLong (conf, "max-len", null); + maxlen = getAttributeAsLong (constraints, "max-len", maxlen); // Validate whether param is equal to constant if (!"".equals (eq)) { @@ -209,7 +213,7 @@ + name + " should be equal to " + eq); if (!value.equals (eq)) { getLogger().debug ("VALIDATOR: and it is not"); - return null; + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); } } @@ -221,116 +225,98 @@ + name + " should be equal to " + params.get (eqp)); if (!value.equals (params.get (eqp))) { getLogger().debug ("VALIDATOR: and it is not"); - return null; + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); } } // Validate whether param length is at least of minimum length - if (!"".equals (minlen)) { + if (minlen != null) { getLogger().debug ("VALIDATOR: string parameter " + name + " should be at least " + minlen + " characters long"); - try { - int min_len = java.lang.Integer.parseInt(minlen); - if ( min_len < 0 ) { - getLogger().error("VALIDATOR: minimum length for parameter " - + name + " is no positive integer"); - } - if ( value.length() < min_len ) { - getLogger().debug ("VALIDATOR: and it is shorter (" + - value.length() + ")" ); - return null; - } - } catch (NumberFormatException nfe) { - getLogger().error("VALIDATOR: minimum length for parameter " - + name + "is no integer", nfe); - return null; + if ( value.length() < minlen.longValue() ) { + getLogger().debug ("VALIDATOR: and it is shorter (" + + value.length() + ")" ); + return new ValidatorActionHelper ( value, ValidatorActionResult.TOOSMALL); } } // Validate whether param length is at most of maximum length - if (!"".equals (maxlen)) { + if (maxlen != null) { getLogger().debug ("VALIDATOR: string parameter " - + name + " should be at most " + maxlen + " characters long"); - try { - int max_len = java.lang.Integer.parseInt(maxlen); - if ( max_len < 0 ) { - getLogger().error("VALIDATOR: maximum length for parameter " - + name + " is no positive integer"); - } - if ( value.length() > max_len ) { - getLogger().debug ("VALIDATOR: and it is longer (" + - value.length() + ")" ); - return null; - } - } catch (NumberFormatException nfe) { - getLogger().error("VALIDATOR: maximum length for parameter " - + name + " is no integer", nfe); - return null; + + name + " should be at most " + maxlen + " characters long"); + + if ( value.length() > maxlen.longValue() ) { + getLogger().debug ("VALIDATOR: and it is longer (" + + value.length() + ")" ); + return new ValidatorActionHelper ( value, ValidatorActionResult.TOOLARGE); } } // Validate wheter param matches regular expression if (!"".equals (regex)) { getLogger().debug ("VALIDATOR: string parameter " + name + - " should match regexp \"" + regex + "\"" ); + " should match regexp \"" + regex + "\"" ); try { RE r = new RE ( regex ); if ( !r.match(value) ) { getLogger().debug("VALIDATOR: and it does not match"); - return null; + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); }; } catch ( RESyntaxException rese ) { getLogger().error ("VALIDATOR: string parameter " + name + - " regex error ", rese); - return null; + " regex error ", rese); + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); } } } - return value; + return new ValidatorActionHelper(value); } /** * Validates nullability and default value for given parameter. If given * constraints are not null they are validated as well. */ - private Object validateLong (String name, Configuration constraints, + private ValidatorActionHelper validateLong (String name, Configuration constraints, Configuration conf, Map params, boolean is_string) { Object param = params.get (name); + boolean nullable = getNullable(conf); Long value = null; + Long dflt = null; + { + String tmp = getDefault(conf); + if ( tmp != null ) dflt = Long.decode(tmp); + } + getLogger().debug ("VALIDATOR: validating long parameter " + name + " (encoded in a string: " + is_string + ")"); value = getLongValue (name, conf, param, is_string); if (value == null) { getLogger().debug ("VALIDATOR: long parameter " + name + " is null"); - return null; + if (!nullable) + return new ValidatorActionHelper ( value, ValidatorActionResult.ISNULL); + else + value=dflt; } if (constraints != null) { - String eq = constraints.getAttribute ("equals-to", ""); + Long eq = getAttributeAsLong (constraints, "equals-to", null); String eqp = constraints.getAttribute ("equals-to-param", ""); + + Long min = getAttributeAsLong (conf, "min", null); + min = getAttributeAsLong ( constraints, "min", min); - String min = conf.getAttribute ("min", ""); - String tmp = constraints.getAttribute ( "min", null); - if ( tmp != null ) min = tmp; - - String max = conf.getAttribute ("max",""); - tmp = constraints.getAttribute ("max",null); - if ( tmp != null ) max = tmp; + Long max = getAttributeAsLong (conf, "max",null); + max = getAttributeAsLong (constraints, "max", max); // Validate whether param is equal to constant - if (!"".equals (eq)) { + if (eq != null) { getLogger().debug ("VALIDATOR: long parameter " + name + " should be equal to " + eq); - try { - Long _eq = new Long(eq); - if (!value.equals (_eq)) { - getLogger().debug ("VALIDATOR: and it is not"); - return null; - } - } catch ( NumberFormatException nfe ) { - getLogger().error("VALIDATOR: "+eq+" is no long", nfe); - return null; + + if (!value.equals(eq)) { + getLogger().debug ("VALIDATOR: and it is not"); + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); } } @@ -340,31 +326,28 @@ if (!"".equals (eqp)) { getLogger().debug ("VALIDATOR: long parameter " + name + " should be equal to " + params.get (eqp)); + // Request parameter is stored as string. + // Need to convert it beforehand. try { - Long _eqp = new Long ( (String) params.get(eqp) ); + Long _eqp = new Long ( Long.parseLong((String) params.get(eqp)) ); if (!value.equals (_eqp)) { getLogger().debug ("VALIDATOR: and it is not"); - return null; + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); } } catch ( NumberFormatException nfe ) { getLogger().debug("VALIDATOR: long parameter "+ name +": "+eqp+" is no long", nfe); - return null; + return new ValidatorActionHelper ( value, ValidatorActionResult.NOMATCH); } } // Validate wheter param is at least min - if (!"".equals (min)) { + if (min != null) { getLogger().debug ("VALIDATOR: long parameter " + name + " should be at least " + min); - try { - Long _min = new Long ( min ); - if (0>value.compareTo(_min)) { - getLogger().debug ("VALIDATOR: and it is not"); - return null; - } - } catch ( NumberFormatException nfe ) { - getLogger().error("VALIDATOR: long parameter "+ name +": min "+min+" is no long", nfe); - return null; + + if (min.compareTo(value)>0) { + getLogger().debug ("VALIDATOR: and it is not"); + return new ValidatorActionHelper ( value, ValidatorActionResult.TOOSMALL); } } @@ -372,62 +355,59 @@ if (!"".equals (max)) { getLogger().debug ("VALIDATOR: long parameter " + name + " should be at most " + max); - try { - Long _max = new Long ( max ); - if (0value.compareTo(_min)) { - getLogger().debug ("VALIDATOR: and it is not"); - return null; - } - } catch ( NumberFormatException nfe ) { - getLogger().error("VALIDATOR: Double parameter "+ name +": min "+min+" is no double", nfe); - return null; + if (0>value.compareTo(min)) { + getLogger().debug ("VALIDATOR: and it is not"); + return new ValidatorActionHelper ( value, ValidatorActionResult.TOOSMALL); } } // Validate wheter param is at most max - if (!"".equals (max)) { + if (max != null) { getLogger().debug ("VALIDATOR: Double parameter " + name + " should be at most " + max); - try { - Double _max = new Double ( max ); - if (0Long but long and + * thus won't take null as parameter value for + * default. + * + * @param conf Configuration + * @param name Parameter's name + * @param dflt Default value + * @return Parameter's value in configuration or + * dflt if parameter is not set or couldn't be + * converted to a Long + * @see org.apache.avalon.Configuration.getParameterAsLong */ + + private Long getAttributeAsLong (Configuration conf, String name, Long dflt) { + Long value = null; + try { + value = new Long(conf.getAttributeAsLong(name)); + } catch (ConfigurationException e) { + value = dflt; + } + return value; + } + + /** + * Addition to Avalon's Configuration.getAttributeAsFloat + * because that one does only deal with float. + * + * @param conf Configuration + * @param name Parameter's name + * @param dflt Default value + * @return Parameter's value in configuration or + * dflt if parameter is not set or couldn't be + * converted to a Double + * @see org.apache.avalon.Configuration.getParameterAsFloat + */ + + private Double getAttributeAsDouble (Configuration conf, String name, Double dflt) { + Double value = null; + String tmp = null; + try { + tmp = conf.getAttribute(name); + try { + value = new Double ( Double.parseDouble(tmp) ); + } catch ( NumberFormatException nfe ) { + value = null; + } + } catch (ConfigurationException e) { + value = dflt; + } + return value; + } + } -// $Id: AbstractValidatorAction.java,v 1.4 2001/05/31 17:37:38 bloritsch Exp $ +// $Id: AbstractValidatorAction.java,v 1.5 2001/06/15 11:49:19 dims Exp $ // vim: set et ts=4 sw=4: 1.5 +35 -14 xml-cocoon2/src/org/apache/cocoon/acting/FormValidatorAction.java Index: FormValidatorAction.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/FormValidatorAction.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- FormValidatorAction.java 2001/06/05 21:36:20 1.4 +++ FormValidatorAction.java 2001/06/15 11:49:20 1.5 @@ -1,4 +1,4 @@ -// $Id: FormValidatorAction.java,v 1.4 2001/06/05 21:36:20 dims Exp $ +// $Id: FormValidatorAction.java,v 1.5 2001/06/15 11:49:20 dims Exp $ package org.apache.cocoon.acting; import java.util.Collections; @@ -14,6 +14,8 @@ import org.apache.cocoon.util.Tokenizer; import org.apache.log.Logger; +import org.apache.cocoon.acting.ValidatorActionHelper; + /** * This is the action used to validate Request parameters. * The parameters are described via the external xml @@ -49,8 +51,13 @@ * This action returns null when validation fails, otherwise it provides * all validated parameters to the sitemap via {name} expression. * + * In addition a request attribute org.apache.cocoon.acting.FormValidatorAction.results + * contains the validation results in both cases and make it available + * to XSPs. Mind you that redirections create new request objects and thus + * the result is not available for the target page. + * * @author Martin Man <Martin.Man@seznam.cz> - * @version CVS $Revision: 1.4 $ $Date: 2001/06/05 21:36:20 $ + * @version CVS $Revision: 1.5 $ $Date: 2001/06/15 11:49:20 $ */ public class FormValidatorAction extends AbstractValidatorAction { @@ -76,6 +83,8 @@ Configuration[] desc = conf.getChildren ("parameter"); Configuration[] csets = conf.getChildren ("constraint-set"); HashMap actionMap = new HashMap (); + HashMap resultMap = new HashMap (); + boolean allOK = true; /* * old obsoleted method */ @@ -86,7 +95,7 @@ String[] rparams = Tokenizer.tokenize (valstr, ",", false); /* perform actuall validation */ - Object result = null; + ValidatorActionHelper result = null; String name = null; HashMap params = new HashMap (rparams.length); /* put required params into hash */ @@ -104,12 +113,13 @@ name = rparams[i].trim (); result = validateParameter (name, null, desc, params, true); - if (result == null) { + if (!result.isOK()) { getLogger().debug ("FORMVALIDATOR: " + "validation failed for parameter " + name); - return null; + allOK = false; } - actionMap.put (name, result); + actionMap.put (name, result.getObject()); + resultMap.put (name, result.getResult()); } } /* @@ -140,7 +150,7 @@ Configuration[] set = cset.getChildren ("validate"); /* perform actuall validation */ - Object result = null; + ValidatorActionHelper result = null; String name = null; HashMap params = new HashMap (set.length); getLogger ().debug ("FORMVALIDATOR: given set " @@ -161,17 +171,28 @@ name = set[i].getAttribute ("name", null); result = validateParameter (name, set[i], desc, params, true); - if (result == null) { + if (!result.isOK()) { getLogger().debug ("FORMVALIDATOR: " + "validation failed for parameter " + name); - return null; + allOK = false; } - actionMap.put (name, result); + actionMap.put (name, result.getObject()); + resultMap.put (name, result.getResult()); } } - getLogger().debug ("FORMVALIDATOR: all form " - + "params validated"); - return Collections.unmodifiableMap (actionMap); + if (!allOK) { + // if any validation failed return an empty map + actionMap = null; + getLogger().debug ("FORMVALIDATOR: all form " + + "params validated. An error occurred."); + } else { + getLogger().debug ("FORMVALIDATOR: all form " + + "params successfully validated"); + } + // store validation results in request attribute + req.setAttribute(Constants.XSP_FORMVALIDATOR_PATH, resultMap); + // return Collections.unmodifiableMap (actionMap); + return actionMap; } catch (Exception e) { getLogger().debug ("exception: ", e); } @@ -179,5 +200,5 @@ } } -// $Id: FormValidatorAction.java,v 1.4 2001/06/05 21:36:20 dims Exp $ +// $Id: FormValidatorAction.java,v 1.5 2001/06/15 11:49:20 dims Exp $ // vim: set et ts=4 sw=4: 1.4 +12 -11 xml-cocoon2/src/org/apache/cocoon/acting/SessionValidatorAction.java Index: SessionValidatorAction.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/SessionValidatorAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SessionValidatorAction.java 2001/06/05 21:36:21 1.3 +++ SessionValidatorAction.java 2001/06/15 11:49:20 1.4 @@ -1,4 +1,4 @@ -// $Id: SessionValidatorAction.java,v 1.3 2001/06/05 21:36:21 dims Exp $ +// $Id: SessionValidatorAction.java,v 1.4 2001/06/15 11:49:20 dims Exp $ package org.apache.cocoon.acting; import java.util.Collections; @@ -7,6 +7,7 @@ import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.logger.AbstractLoggable; import org.apache.avalon.framework.parameters.Parameters; +import org.apache.cocoon.acting.ValidatorActionHelper; import org.apache.cocoon.Constants; import org.apache.cocoon.environment.Redirector; import org.apache.cocoon.environment.Request; @@ -52,7 +53,7 @@ * all validated parameters to the sitemap via {name} expression. * * @author Martin Man <Martin.Man@seznam.cz> - * @version CVS $Revision: 1.3 $ $Date: 2001/06/05 21:36:21 $ + * @version CVS $Revision: 1.4 $ $Date: 2001/06/15 11:49:20 $ */ public class SessionValidatorAction extends AbstractValidatorAction { @@ -94,7 +95,7 @@ String[] rparams = Tokenizer.tokenize (valstr, ",", false); /* perform actuall validation */ - Object result = null; + ValidatorActionHelper result = null; String name = null; HashMap params = new HashMap (rparams.length); /* put required params into hash */ @@ -112,13 +113,13 @@ name = rparams[i].trim (); result = validateParameter (name, null, desc, params, false); - if (result == null) { + if (!result.isOK()) { getLogger().debug ("SESSIONVALIDATOR: " + "validation failed for parameter " + name); return null; } - session.setAttribute (name, result); - actionMap.put (name, result); + session.setAttribute (name, result.getObject()); + actionMap.put (name, result.getObject()); } } /* @@ -149,7 +150,7 @@ Configuration[] set = cset.getChildren ("validate"); /* perform actuall validation */ - Object result = null; + ValidatorActionHelper result = null; String name = null; HashMap params = new HashMap (set.length); getLogger ().debug ("SESSIONVALIDATOR: given set " @@ -170,13 +171,13 @@ name = set[i].getAttribute ("name", null); result = validateParameter (name, set[i], desc, params, false); - if (result == null) { + if (!result.isOK()) { getLogger().debug ("SESSIONVALIDATOR: " + "validation failed for parameter " + name); return null; } - session.setAttribute (name, result); - actionMap.put (name, result); + session.setAttribute (name, result.getObject()); + actionMap.put (name, result.getObject()); } } getLogger().debug ("SESSIONVALIDATOR: all session " @@ -189,5 +190,5 @@ } } -// $Id: SessionValidatorAction.java,v 1.3 2001/06/05 21:36:21 dims Exp $ +// $Id: SessionValidatorAction.java,v 1.4 2001/06/15 11:49:20 dims Exp $ // vim: set et ts=4 sw=4: 1.2 +20 -0 xml-cocoon2/src/org/apache/cocoon/acting/ConfigurationHelper.java 1.2 +104 -0 xml-cocoon2/src/org/apache/cocoon/acting/ValidatorActionHelper.java 1.2 +55 -0 xml-cocoon2/src/org/apache/cocoon/acting/ValidatorActionResult.java 1.4 +1 -1 xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/XSPGenerator.java Index: XSPGenerator.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/XSPGenerator.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- XSPGenerator.java 2001/06/12 20:02:44 1.3 +++ XSPGenerator.java 2001/06/15 11:49:22 1.4 @@ -22,7 +22,7 @@ * Base class for XSP-generated ServerPagesGenerator classes * * @author Ricardo Rocha - * @version CVS $Revision: 1.3 $ $Date: 2001/06/12 20:02:44 $ + * @version CVS $Revision: 1.4 $ $Date: 2001/06/15 11:49:22 $ */ public abstract class XSPGenerator extends AbstractServerPage implements CompiledComponent, Contextualizable, Recyclable { protected Context avalonContext = null; 1.2 +626 -0 xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/XSPFormValidatorHelper.java 1.6 +1 -1 xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl Index: esql.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- esql.xsl 2001/06/13 22:06:24 1.5 +++ esql.xsl 2001/06/15 11:49:23 1.6 @@ -1,5 +1,5 @@ - +