choose.jsp 904 B

12345678910111213141516171819202122
  1. <%@ page contentType="text/html; charset=euc-kr" %>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ include file="../../upper.jsp"%>
  4. <br>
  5. <h2> &lt;choose&gt;Test </h2>
  6. <br>
  7. <h5><u>admin : red, administrator : blue, others : green</u></h5>
  8. <form action="choose.jsp" method="GET">
  9. input your ID( administrator or admin )<br>
  10. <input type="text" name="id">
  11. <input type="submit">
  12. </form>
  13. <c:choose>
  14. <c:when test="${param.id=='admin'}"><font color="red">Hello~! admin~!</font></c:when>
  15. <c:when test="${param.id=='administrator'}"><font color="blue">Hello~! administrator~!</font></c:when>
  16. <c:when test="${param.id==''}">you didn't input ID</c:when>
  17. <c:otherwise> <c:if test="${!empty param.id}"><font color="green">you input wrong ID : <c:out value="${param.id}"/>. </c:if></font></c:otherwise>
  18. </c:choose>
  19. <%@ include file="../../footer.html" %>