tags:

views:

25

answers:

1
+2  Q: 

Nested JSTL Tags

I want to use a formatDate tag inside a param tag. This doesn't work:

<fmt:message key="entry">
   <fmt:param value="<fmt:formatDate value='${entry.time}' pattern='h:mm' />"/>
</fmt:message>

How can I do this?

+2  A: 

You can use the body content of fmt:param

Like this:

<fmt:message key="entry">
  <fmt:param><fmt:formatDate value='${entry.time}' pattern='h:mm' /></fmt:param>
</fmt:message>

This should do what you want. :)

Hendrik