apps-test/taglib-it/src/main/webapp/org/apache/struts/taglib/html/TestMessagesTag5.jsp [6:53]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%@ page import="org.apache.struts.util.MessageResources" %>

<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<%
    /**
     * From the Docs:
     *
     * <html:message>
     * Displays a set of messages prepared by a business logic component and
     * stored as an ActionMessages  object, a String, or a String array in request
     * scope. If such a bean is not found, nothing will be rendered.
     *
     * The tests are setup to test all possible scenarios with each ojbect listed.
     * Using Globals.ERROR_KEY in the request
     * TestMessagesTag1.jsp - uses ActionMessages to store any keys for testing
     * TestMessagesTag2.jsp - uses a String to store any keys for testing
     * TestMessagesTag3.jsp - uses a String Array to store any keys for testing
     * TestMessagesTag4.jsp - uses ActionMessages to store any keys for testing
     *
     * Using Globals.MESSAGE_KEY in the request
     * TestMessagesTag5.jsp - uses ActionMessages to store any keys for testing
     * TestMessagesTag6.jsp - uses a String to store any keys for testing
     * TestMessagesTag7.jsp - uses a String Array to store any keys for testing
     * TestMessagesTag8.jsp - uses ActionMessages to store any keys for testing
     *
     **/
%>

<!-- --------Testing attributes using forward------ -->
<logic:equal name="runTest" value="testMessages">
    <bean:define id="EXPECTED_RESULTS" toScope="page">
        Messages:
    </bean:define>
    <bean:define id="TEST_RESULTS" toScope="page">
        Messages:
        <html:messages id="message" message="true">
            Message:<bean:write name="message"/>
        </html:messages>
    </bean:define>
</logic:equal>


<logic:equal name="runTest" value="testMessagesDefaultBundleEmpty">
    <bean:define id="EXPECTED_RESULTS" toScope="page">
        Messages:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



apps-test/taglib-it/src/main/webapp/org/apache/struts/taglib/html/TestMessagesTag6.jsp [4:51]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%@ page import="org.apache.struts.util.MessageResources" %>

<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<%
    /**
     * From the Docs:
     *
     * <html:message>
     * Displays a set of messages prepared by a business logic component and
     * stored as an ActionMessages  object, a String, or a String array in request
     * scope. If such a bean is not found, nothing will be rendered.
     *
     * The tests are setup to test all possible scenarios with each ojbect listed.
     * Using Globals.ERROR_KEY in the request
     * TestMessagesTag1.jsp - uses ActionMessages to store any keys for testing
     * TestMessagesTag2.jsp - uses a String to store any keys for testing
     * TestMessagesTag3.jsp - uses a String Array to store any keys for testing
     * TestMessagesTag4.jsp - uses ActionMessages to store any keys for testing
     *
     * Using Globals.MESSAGE_KEY in the request
     * TestMessagesTag5.jsp - uses ActionMessages to store any keys for testing
     * TestMessagesTag6.jsp - uses a String to store any keys for testing
     * TestMessagesTag7.jsp - uses a String Array to store any keys for testing
     * TestMessagesTag8.jsp - uses ActionMessages to store any keys for testing
     *
     **/
%>

<!-- --------Testing attributes using forward------ -->
<logic:equal name="runTest" value="testMessages">
    <bean:define id="EXPECTED_RESULTS" toScope="page">
        Messages:
    </bean:define>
    <bean:define id="TEST_RESULTS" toScope="page">
        Messages:
        <html:messages id="message" message="true">
            Message:<bean:write name="message"/>
        </html:messages>
    </bean:define>
</logic:equal>


<logic:equal name="runTest" value="testMessagesDefaultBundleEmpty">
    <bean:define id="EXPECTED_RESULTS" toScope="page">
        Messages:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



