A similar thing has happened to me using <fmt:formatNumber> for which
I had to enable sessions. I cant remember exactly where, but the stack
trace reveals that somewhere in the fmt implementation there is a call
to get session.

Ive left sessions on for the moment to get this working for me, but if
there is other workaround ill do the formatting myself manually.
There's no point in having session enabled just for this.

On 11/30/09, aschearer <aschea...@gmail.com> wrote:
> I'm not sure if I'm doing something wrong -- I'm new to JSTL -- but
> when I try to format a date I get an error about session state not
> being enabled. For the record I am trying:
>
>     <td><fmt:formatDate value="${post.created}" pattern="MMM dd yyyy"
> type="date" /></td>
>
> Which results in the following error:
>
>     Session support is not enabled in appengine-web.xml.  To enable
> sessions, put <sessions-enabled>true</sessions-enabled> in that file.
>
> If I enable sessions then the page loads as expected. I've tried
> setting the scope / var attributes on formatDate without any luck.
>
> I'd appreciate any help, thanks.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to