You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Othman Haddad <oh...@neomalogic.com> on 2002/07/05 13:01:49 UTC

formvalidation

hi,
does everybody knows which page is displayed when accessing to the form:
/cocoon/formvalidation/test ? in the samples/doc/formvalidation of cocoon
binary distribution?
i just find:
descriptor.xml
ok.xsp
error.xsp

but where is the form page?is it create dynamically by the action?
i looked also onto the sitemap.xmap of cocoon/ but have found just this
which does not say where the dispalyed page before validation is?

1)pipelines: 
<map:match pattern="formvalidation/test">
<map:act type="form-validator">
<map:parameter name="descriptor" value=
context:///docs/samples/formvalidation/descriptor.xml"/>
<map:parameter name="validate-set" value="car-reservation"/>
<map:call resource="dynamic-page">
<map:parameter name="target" value="docs/samples/formvalidation/OK"/>
</map:call>
</map:act>
<map:call resource="dynamic-page">
<map:parameter name="target" value="docs/samples/formvalidation/ERROR"/>
</map:call>
</map:match>
----------------------------------------
2)actions

<map:actions> 
......
<map:action logger="sitemap.action.form-validator" name="form-validator"
src="org.apache.cocoon.acting.FormValidatorAction"/>
......
</map:actions>
</map:components>
3)resources
<map:resource name="dynamic-page">
<map:generate src="{target}.xsp" type="serverpages"/>
<map:transform src="stylesheets/dynamic-page2html.xsl">
<map:parameter name="view-source" value="{target}.xsp"/>
</map:transform>
<map:serialize/>
</map:resource>
--------
thanks for your help

Réf. : Re: formvalidation

Posted by Othman Haddad <oh...@neomalogic.com>.
right thanks for the answer...

-------Message original-------

De : cocoon-users@xml.apache.org
Date : vendredi 05 juillet 2002 13:06:49
A : cocoon-users@xml.apache.org; Othman Haddad
Sujet : Re: formvalidation

On 05.Jul.2002 -- 01:01 PM, Othman Haddad wrote:
> hi,
> does everybody knows which page is displayed when accessing to the form:
> /cocoon/formvalidation/test ? in the samples/doc/formvalidation of cocoon
> binary distribution?
> i just find:
> descriptor.xml
> ok.xsp
> error.xsp

It's the error.xsp

Chris.
-- 
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


.

Re: formvalidation

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 05.Jul.2002 -- 01:01 PM, Othman Haddad wrote:
> hi,
> does everybody knows which page is displayed when accessing to the form:
> /cocoon/formvalidation/test ? in the samples/doc/formvalidation of cocoon
> binary distribution?
> i just find:
> descriptor.xml
> ok.xsp
> error.xsp

It's the error.xsp

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>