My form validator code worked well under xsp file. when i moved them to logicshee, and 
error raised. It was reported that ths generated java file is wrong.
Is it a bug?

============= guestbook-logic.xsl ==============
<xsl:template match="guestbook:check-form">
        Error: <xsp-formval:results/><br/>
        <xsp-formval:descriptor name="context:///test/descriptor.xml" 
constraint-set="guestbook">
                age must not less than
                <xsp-formval:get-attribute parameter="age" name="min"/>
                <br/>
                <xsp-formval:on-null name="age">
                        null age
                </xsp-formval:on-null>
        </xsp-formval:descriptor>
</xsl:template>
==========================================

here is the generated xsp file:
=============guestbook_xsp.java===========
    
          if 
(XSPFormValidatorHelper.getParamResult(objectModel,"age").equals(ValidatorActionResult.ISNULL))
 {
              
                        null age
                
          }
        
      }
=======================================

===========error reported on browser====
Line 409, column 32:  ';' expected
Line 409, column 24:  class null not found in class org.apache.cocoon.www.file
========================================

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to