I want to retrieve a message with a specific key from the tag of Stripes framework.
In the action bean I have this:
switch (result) {
case REG_ALREADY_REGISTERED:
getContext().getMessages().add(new LocalizableMessage("consumer.already.registered"));
redirect = getContext().getSourcePageResolution();
break;
In the JSP page:
<stripes:messages key="consumer.already.registered"/>
but the above code does not seem to work. If I am putting only the "<stripes:messages/>
" it shows stripes's default way of printing messages. i.e, with "ul li" thing. I want to give my kind of presentation to the messages. Is there anything possible with JSP like as follows:
<c:if test="${not empty actionBean.context.messages}">
<c:out value="${actionBean.context.messages......"/> //This is the place where I am unsure
</c:if>