Expresso 5-6

com.jcorporate.expresso.ext.struts.taglib.bean
Class ExMessageTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.taglib.bean.MessageTag
          extended bycom.jcorporate.expresso.ext.struts.taglib.bean.ExMessageTag
All Implemented Interfaces:
IterationTag, Serializable, Tag

public class ExMessageTag
extends org.apache.struts.taglib.bean.MessageTag

Expresso-specific extension to the MessageTag from Struts: this version gets it's message string from the ControllerRequest object, which knows the current user's locale settings already, and also has the application schema code, which allows us to use the appropriate message bundle file for the current application, as Expresso support multiple message bundles, one per schema

Author:
Michael Nash
See Also:
Serialized Form

Field Summary
static String SCHEMA_KEY
           
 String schemaClass
           
 
Fields inherited from class org.apache.struts.taglib.bean.MessageTag
arg0, arg1, arg2, arg3, arg4, bundle, defaultLocale, key, localeKey, messages, name, property, scope
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ExMessageTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
 String getSchema()
           
 void setSchema(String newSchema)
           
 
Methods inherited from class org.apache.struts.taglib.bean.MessageTag
getArg0, getArg1, getArg2, getArg3, getArg4, getBundle, getKey, getLocale, getName, getProperty, getScope, release, setArg0, setArg1, setArg2, setArg3, setArg4, setBundle, setKey, setLocale, setName, setProperty, setScope
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_KEY

public static final String SCHEMA_KEY
See Also:
Constant Field Values

schemaClass

public String schemaClass
Constructor Detail

ExMessageTag

public ExMessageTag()
Method Detail

setSchema

public void setSchema(String newSchema)

getSchema

public String getSchema()

doStartTag

public int doStartTag()
               throws JspException
Process the start tag.

Returns:
integer as defined in the standard tag library framework.
Throws:
JspException - if a JSP exception has occurred

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.