• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<fmt:message> prints the key as it is

ashwath narayana
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sir,

I have added some of the keys into messages.properties and in the jsp iam trying to get the keys from messages.properties,
it is printing "msg.analyst.issuers.covered" the keys as it is in the application.

I have added the following taglibs in my jsp :
<%@ page pageEncoding="UTF-8"%>
<%@ page session="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

In the jsp <td class="HeadlineText" BGColor="#003399" width='100%' height="17">
<fmt:message key="heading.myapp.holding " />

message.properties contains key like - heading.myapp.holding =welcome to i18n
Thanks in advance for your great help!
Ilari Moilanen
Ranch Hand
Posts: 199
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic