On 17.Sep.2002 -- 04:19 PM, William Moore wrote:
> Hello
>
> I am trying to use FormValidatorAction to check data before inserting it
> into a database.
>
> The key on the database is one of the values on the form, and I want to
> check if it already exists on the database so I can tell the user to enter
> a different value.
>
> I cannot work out how to do this. The documentation suggests I should be
> doing something with a DatabaseAction, but I do not know what.
You could
a) wait for an error and chose a different pipeline
b) chaeck with a DatabaseSelectAction whether the key
already exists
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>