2005/11/8, Andres Taborda <[EMAIL PROTECTED]>: > I need make an forms for read and execute file > some input type= file. > > the file are instructions SQL and want > import to postgresql. > > how can make it with cocoon.
Use cforms upload widget http://cocoon.apache.org/2.1/userdocs/forms/widget_upload.html Using flowscript, ... To retrieve the uploaded data, simply use the getValue method of the widget, which will in this case return an object of the following type: org.apache.cocoon.servlet.multipart.Part Use it to get your contents, read the SQL in there, and do any database interaction you need. I never tried, so I can't warn you of any gotchas. -- Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
