Here's one way, if you really don't want to use <fmt:message>

import javax.servlet.jsp.jstl.fmt.LocaleSupport;

LocaleSupport.getLocalizedMessage(pageContext, key);



Chris Pratt on 28/12/07 19:19, wrote:
OK, I'm losing my mind trying to figure this out.  I tried asking on
the Users list, but no one there seemed to know the answer, so I
figured I'd just ask the people who already know.

I'm trying to write a tag library that mimics the old Struts 1 html
tag library, I'm planning on open-sourcing it when I get close enough
to being done.  One of the tags I'm attempting to write is the old
<html:messages> tag.  But, I can't seem to figure out how to get hold
of the messages.  I tried to trace how it works in the new struts
<s:actionmessage> tag, but jumping between JSP Tag Libraries, OGNL
Processors, Components and FreeMarker scripts is too much for my
feeble brain.

What is required for a tag library to display the ActionMessage,
ActionErrors and FieldErrors ???

Any help would be greatly appreciated.
 (*Chris*)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to