Christian Haul dijo: > On 17.Feb.2003 -- 03:31 PM, Marco Taiuti wrote: >> I have a DatabaseAction with the followed descriptor >> >> <?xml version="1.0"?> >> <tabelle> >> <connection>line_db</connection> >> <table name="t_news"> >> <keys> >> <key param="numprg" dbcol="numprg" type="int" mode="manual"/> >> </keys> >> <values> >> <value param="datpub" dbcol="datpub" type="date" > >> </value> >> </values> >> </table> >> </tabelle> >> >> How i can use the DateMetaInputModule or DateInputModule to format >> date "datpub" to 'dd/MM/yyyy'? >> Thanks, > > Short answer: Since you apparently do not use the "modular" database > actions, you cannot. > > Long answer: There are two sets of database actions: one set in > org.apache.cocoon.acting and another one in > org.apache.cocoon.acting.modular They are similar to a great deal but > differ in details. Configuration files from the "original" actions can > mostly be used with the "modular" ones. > > Formating the date is an output issue, which is not handled by the > actions. At least in case of the modular actions, they return a java > date object, not a string. Parsing input data is an issue. Of my head I > believe both Date*Module take a format parameter that is expected to > conform to the SimpleDateFormat specs. See javadocs for details.
More info at: http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseActions Antonio Gallardo > > 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]> --------------------------------------------------------------------- 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]>