Andre Taube wrote:
Thanks, that's exactly what I need.  However, my date is in MM/dd/YYYY
format, how could I pass a format string to the DateMetaInputModule?  API
says: "Configuration options: child element "input-module" holds InputModule
to obtain the string from, attribute "format" to "input-module" that holds a
java.text.SimpleDateFormat format string"

but the following does not work for me:

<value name="start_date" type="date">
   <!-- if "attrib" is requested, convert string to a Date using the
        date conversion module -->
   <mode name="datemeta" type="attrib">
      <!-- pass the following as attribute name to the nested module -->
      <parameter>start_date</parameter>
        <format>MM/dd/YYYY</format>
      <!-- use the request parameter module to obtain the string -->
        <input-module name="request-param"/>
   </mode>
</value>
If this doesn't work, make sure that a) you are running a recent snapshot (either branch) and b) include complete file (i.e. table-set) and logs showing invokation of your action.

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]>

Reply via email to