cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject RE: howto format user input and save to database by default database actions
Date Thu, 07 Mar 2002 07:51:51 GMT
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


>>> davoustp@YAHOO.COM 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:marcowcl@hotmail.com] 
Sent: Wednesday, March 06, 2002 3:14 AM
To: cocoon-users@xml.apache.org 
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


_________________________________________________________
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


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


Mime
View raw message