<%--
 Copyright 2003, Oracle and its affiliates. All rights reserved.
 ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
--%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tck" uri="http://java.sun.com/jstltck/jstltck-util" %>
<%@ page import="javax.servlet.jsp.jstl.core.Config" %>
<tck:test testName="formatBundleResourceLookup">
    <!-- Lookups are performed in the order of the preferred locales provided
         by the client -->
    <tck:config configVar="fallback" value='<%= request.getParameter("fall") %>'
                op="set"/>
    <fmt:setBundle var="ctxbundle" basename="com.sun.ts.tests.jstl.common.resources.${param.res}"/>
    <fmt:message bundle="${ctxbundle}" key="mkey" var="fmessage"/>
    <%
        response.addHeader("message", (String) pageContext.getAttribute("fmessage"));
    %>
</tck:test>
