src.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /* ====================================================================
  2. * The Tmax soft License, Version 1.1
  3. *
  4. * Copyright (c) 1997-2004 The Tmax software.
  5. * All rights reserved.
  6. * html code omitted for readability.
  7. /* ====================================================================
  8. /* choose.jsp */
  9. <%@ page contentType="text/html; charset=euc-kr" %>
  10. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  11. <%@ include file="../../upper.jsp"%>
  12. <br>
  13. <h2> &lt;choose&gt;Test </h2>
  14. <br>
  15. <h5><u>admin : red, administrator : blue, others : green</u></h5>
  16. <form action="choose.jsp" method="GET">
  17. input your ID( administrator or admin )<br>
  18. <input type="text" name="id">
  19. <input type="submit">
  20. </form>
  21. <c:choose>
  22. <c:when test="${param.id=='admin'}"><font color="red">Hello~! admin~!</font></c:when>
  23. <c:when test="${param.id=='administrator'}"><font color="blue">Hello~! administrator~!</font></c:when>
  24. <c:when test="${param.id==''}">you didn't input ID</c:when>
  25. <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>
  26. </c:choose>
  27. <%@ include file="../../footer.html" %>