You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by zulhisham abu nawar <ij...@gmail.com> on 2006/02/09 10:32:52 UTC

xsp form validator

i've problem with xsp validator. Briefly i've to xsp file which is
first xsp is get the data using form and second xsp is display
successful validation data..Below are some info abt my codes...

decscriptor.xml
<root>
        <parameter name="name" type="string" min-len="2" max-len="15"/>

        <constraint-set name="depart-validator">
                <validate name="name"/>
        </constraint-set>
</root>

sitemap.xmap
<map:match pattern="process-department">

 <map:act type="form-validator">
  <map:parameter name="descriptor" value="context://descriptor.xml"/>
  <map:parameter name="validate-set" value="depart-validator"/>
  <!-- success -->

     <map:generate src="process-department.xsp" type="serverpages"/>
       <map:transform src="context://samples/stylesheets/dynamic-page2html.xsl">
          <map:parameter name="servletPath" value="{request:servletPath}"/>
          <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
          <map:parameter name="contextPath" value="{request:contextPath}"/>
          <map:parameter name="file" value=".xsp"/>
       </map:transform>
     <map:serialize/>

  </map:act>
   <!-- failed -->
</map:match>

sitemap.log
ERROR   (2006-02-09) 17:28.57:865   [sitemap.action.form-validator]
(/cocoon/samples/blocks/databases/org-db/process-department)
http-8080-Processor23/AbstractComplementaryConfig
urableAction: Could not configure Database mapping environment
org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException:
file:/usr/opt/tomcat/jakarta-tomcat-5.0.28/webapps/cocoon/d
escriptor.xml doesn't exist.

WARN    (2006-02-09) 17:28.57:883   [sitemap.action.form-validator]
(/cocoon/samples/blocks/databases/org-db/process-department)
http-8080-Processor23/AbstractValidatorAction: Ex
ception reading descriptor:
org.apache.avalon.framework.configuration.ConfigurationException:
Error trying to load configurations for resource:
file:/usr/opt/tomcat/jakarta-tomcat-5.0.28/webapps/cocoon/desc
riptor.xml

INFO    (2006-02-09) 17:28.57:903   [sitemap]
(/cocoon/samples/blocks/databases/org-db/process-department)
http-8080-Processor23/HandleErrorsNode: Processing handle-errors at
fil
e:/usr/opt/tomcat/jakarta-tomcat-5.0.28/webapps/cocoon/sitemap.xmap:840:24

tq..

--
::)- mister ijoi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org