net.mlw.vlh.web.util
Class StrutsDisplayHelper
java.lang.Object
net.mlw.vlh.web.util.StrutsDisplayHelper
- All Implemented Interfaces:
- DisplayHelper
- public class StrutsDisplayHelper
- extends Object
- implements DisplayHelper
The StrutsDisplayHelper is used to i18n the column headers. It can be used by
adding the folloing in the spring config file:
...
This DisplayHelper simply takes the value of the column and looks up the message in
the default resource bundle.
NOTE: The prefered way to i18n is to use the titleKey attribute and the
messageSource defined in the ValueListConfigBean.
- Version:
- $Revision: 1.5 $ $Date: 2005/10/20 16:38:08 $
- Author:
- Matthew L. Wilson
Method Summary |
String |
help(javax.servlet.jsp.PageContext pageContext,
String key)
Abstracts the means by which text is displayed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrutsDisplayHelper
public StrutsDisplayHelper()
help
public String help(javax.servlet.jsp.PageContext pageContext,
String key)
throws javax.servlet.jsp.JspException
- Description copied from interface:
DisplayHelper
- Abstracts the means by which text is displayed.
- Specified by:
help
in interface DisplayHelper
- Parameters:
pageContext
- The jsp PageContextkey
- The key, which could be the value to display or some sort of key
to the text value.
- Returns:
- The text value.
- Throws:
javax.servlet.jsp.JspException
- Thrown by underling implementation.- See Also:
DisplayHelper.help(javax.servlet.jsp.PageContext, java.lang.String)
Copyright © 2003-2006 mlavilson. All Rights Reserved.