JSTL Nested Tags

I want to use the formatDate tag inside the param tag. This does not work:

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

How can i do this?

+4
source share
1 answer

You can use fmt:param body content

Like this:

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

That should do what you want. :)

+3
source

Source: https://habr.com/ru/post/1315886/


All Articles