<%-- Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. --%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <fmt:setBundle basename="LocalStrings"/> <html> <!-- Copyright (c) 1999 The Apache Software Foundation. All rights reserved. --> <body bgcolor="lightblue"> <%@ page errorPage="errorpge.jsp" %> <jsp:useBean id="foo" scope="request" class="samples.webapps.simple.beans.error.Smart" /> <% String name = null; if (request.getParameter("name") == null) { %> <%@ include file="/jsp/error/error.html" %> <% } else { foo.setName(request.getParameter("name")); if (foo.getName().equalsIgnoreCase("integra")) name = "acura"; if (name.equalsIgnoreCase("acura")) { %> <H1> <fmt:message key="err.jsp.yes"/> <a href="http://www.acura.com">Acura</a> <fmt:message key="err.jsp.favorite"/> <% } } %> </body> </html>