| org.apache.struts.taglib.logic.ConditionalTagBase org.apache.struts.taglib.logic.MessagesPresentTag
All known Subclasses: org.apache.struts.taglib.logic.MessagesNotPresentTag, org.apache.struts.taglib.nested.logic.NestedMessagesPresentTag, org.apache.strutsel.taglib.logic.ELMessagesPresentTag,
MessagesPresentTag | public class MessagesPresentTag extends ConditionalTagBase (Code) | | Evalute to true if an ActionMessages class or a
class that can be converted to an ActionMessages class is in
request scope under the specified key and there is at least one message in
the class or for the property specified.
version: $Rev: 471754 $ $Date: 2005-11-19 12:36:20 -0500 (Sat, 19 Nov 2005) version: $ since: Struts 1.1 |
Field Summary | |
protected String | message If this is set to 'true', then the Globals.MESSAGE_KEY
will be used to retrieve the messages from scope. |
Method Summary | |
protected boolean | condition() Evaluate the condition that is being tested by this particular tag, and
return true if the nested body content of this tag should
be evaluated, or false if it should be skipped. | protected boolean | condition(boolean desired) Evaluate the condition that is being tested by this particular tag, and
return true if there is at least one message in the class
or for the property specified. | public String | getMessage() | public void | release() Release all allocated resources. | public void | setMessage(String message) |
message | protected String message(Code) | | If this is set to 'true', then the Globals.MESSAGE_KEY
will be used to retrieve the messages from scope.
|
MessagesPresentTag | public MessagesPresentTag()(Code) | | |
condition | protected boolean condition() throws JspException(Code) | | Evaluate the condition that is being tested by this particular tag, and
return true if the nested body content of this tag should
be evaluated, or false if it should be skipped.
throws: JspException - if a JSP exception occurs |
condition | protected boolean condition(boolean desired) throws JspException(Code) | | Evaluate the condition that is being tested by this particular tag, and
return true if there is at least one message in the class
or for the property specified.
Parameters: desired - Desired outcome for a true result throws: JspException - if a JSP exception occurs |
release | public void release()(Code) | | Release all allocated resources.
|
|
|