Hi,

I have a quick question regarding the DateFormatter class. I want to use
it
from within a jsp page. Now I can call webwork:bean and use the class.
So I
could do something like this:

<webwork:bean name="webwork.util.DateFormatter" id="formatter">
  <webwork:param name="'format'" value="h:mm a"/>
</webwork:bean>

and I get the result using this:

<webwork:property id="@formatter" value="formattedDate"/>

Am I correct so far? I want to pass in a date to the DateFormatter bean
then have the result printed to the browser. The date is coming from a
class which is in a collection off of the value stack. This is the code
that I have:

<webwork:property value="event">
  <webwork:bean name="webwork.util.DateFormatter" id="formatter">
    <webwork:param name="'date'" value="../startDate"/>
    <webwork:param name="'format'" value="h:mm a"/>
  </webwork:bean>

  <webwork:property id="@formatter" value="formattedDate"/>
</webwork:property>

I'm getting a jsp error when I run this. Is this correct? The ".." will
go
up one level on the value stack to the event property? 

Any pointers or suggestions would be great. Also, the error I'm getting
is
a NullPointerException at java.util.Hashtable.put

Thanks,
rick



_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to