<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c_rt" %>
<%@ page  contentType="text/html;charset=gb2312" %>
<%@ page isELIgnored="false"%>
<html>
<head>
<title>
chooseexample
</title>
</head>
<body bgcolor="#ffffff">
<h1>
核心标签库的示例
</h1>
<form method="post" action="">
<select name="txtdestination">
  <option>国家或地区</option>
  <option value="New York">纽约</option>
  <option value="London">伦敦</option>
  <option value="China">中国</option>
  <option value="Japan">日本</option>
  <option value="Germany">德国</option>
  <option value="Dubai">迪拜</option>
</select>
 <input type="submit" value="提交">
  </form>
 <c_rt:set var="destination" value="${param.txtdestination}">
  </c_rt:set>
<c_rt:choose>
  <c_rt:when test="${destination == 'New York'}">
    <c_rt:out value="纽约 费用为 500 元/-"/>
  </c_rt:when>
  <c_rt:when test="${destination == 'London'}">
    <c_rt:out value="伦敦 费用为 900 元/-"/>
  </c_rt:when>
  <c_rt:when test="${destination == 'China'}">
    <c_rt:out value="中国 费用为 400 元/-"/>
  </c_rt:when>
  <c_rt:when test="${destination == 'Japan'}">
    <c_rt:out value="日本 费用为 550 元/-"/>
  </c_rt:when>
  <c_rt:when test="${destination == 'Germany'}">
    <c_rt:out value="德国 费用为 600 元/-"/>
  </c_rt:when>
  <c_rt:when test="${destination == 'Dubai'}">
    <c_rt:out value="迪拜 费用为 700 元/-"/>
  </c_rt:when>
  <c_rt:otherwise>
    <c_rt:out value=""/>
  </c_rt:otherwise>
</c_rt:choose>
</body>
</html>
