on 5/15/01 3:54 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> +#if ($doInputValidation)
> +    static {
> +         try {
> +          InputValidator tmp;
> +#foreach ($col in $table.Columns)
> +    #set ( $tfc=$table.JavaName )
> +    #set ( $cfc=$col.JavaName )
> +    #set ( $cup=$col.Name.toUpperCase() )
> +#if ($col.InputValidator)
> +          tmp = setInputValidator($cup, "$col.InputValidator");
> +#if ($col.isNotNull())
> +          tmp.setAllowNullInput(false);
> +#else
> +          tmp.setAllowNullInput(true);
> +#end
> +#if ($col.Size) 
> +          tmp.setMaxSize($col.Size);
> +#end
> +#end
>  #end
> +         }catch(Exception e){
> +             Log.error(e);
> +         }
> +    }
> +#end

This should be correctly formatted Java code according to Turbine's coding
standards.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to