JSTL commands do not work

J

Joop Kaashoek

We have a problem with the following JSTL tag/code

<fmt_rt:message key="<%=(tasObj.showResult) ? "label.yes" : "label.no"
%>"/>

This ends up in the resulting page output as

<fmt_rt:message key="label.no"/>

instead of being translated. What could be the reason that this tag
does not get translated? Other tags such as <fmt:message...> work
fine..

Regards,

Joop Kaashoek
 
M

Murray

Joop Kaashoek said:
We have a problem with the following JSTL tag/code

<fmt_rt:message key="<%=(tasObj.showResult) ? "label.yes" : "label.no"
%>"/>

This ends up in the resulting page output as

<fmt_rt:message key="label.no"/>

instead of being translated. What could be the reason that this tag
does not get translated? Other tags such as <fmt:message...> work
fine..

Regards,

Joop Kaashoek

Are you defining the taglib at the top of the page?
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt_rt" %>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top