This is not a Cocoon solution... but you could consider using JavaScript
to
work with the DOM and update the contents of input fields when the
'onSubmit'
event is triggered - there are many good JS sites with code snippets
that could 
be adapted for this situation.

Derek


>>> [EMAIL PROTECTED] 07/03/2002 02:10:21 >>>
Good point.
I guess an idea would be to use a ServerPagesAction to do whatever
you'd
like to your incoming parameters, and pass them through to the nested
action
by the sitemap. You'll have your db insert action nested inside the
server
pages action, if you see what I mean.

Never experimented such stuff, though (currently struggling to write my
own
action to suit my needs in a generic enough way) :o)

Hope it could help,

                        Pascal.

-----Original Message-----
From: marco [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 06, 2002 3:14 AM
To: [EMAIL PROTECTED] 
Subject: howto format user input and save to database by default
database
actions


I am using the DatabaseAddAction to insert user input data into the
database, but I cannot format the user input (e.g. uppercase) before
saving
data into the database or I cannot split one user input field data and
save
to serveral columns of a table.

Please help!

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

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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com 


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

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


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

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

Reply via email to