apps-test/taglib-it/src/main/webapp/org/apache/struts/taglib/html/TestMessagesTag1.jsp [1:43]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="junit.framework.Assert" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.action.ActionMessage" %>
<%@ page import="org.apache.struts.action.ActionMessages" %>
<%@ 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:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



apps-test/taglib-it/src/main/webapp/org/apache/struts/taglib/html/TestMessagesTag8.jsp [1:43]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="junit.framework.Assert" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.action.ActionMessage" %>
<%@ page import="org.apache.struts.action.ActionMessages" %>
<%@ 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:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



