src.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /* if.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;if&gt; Test</h2>
  14. <br>
  15. <h5> Please choice one</h5>
  16. <form action="if.jsp" method="GET">
  17. <select name="rainbow" id="color">
  18. <option value="colors" selected=true>Rainbow Colors
  19. <option value="red">Red
  20. <option value="orange">Oranage
  21. <option value="yellow">Yellow
  22. <option value="green">Green
  23. <option value="blue">Blue
  24. <option value="indigo">Indigo
  25. <option value="violet">Violet
  26. </select>
  27. <br>
  28. <input type="submit">
  29. </form>
  30. <br><br>
  31. <c:if test="${param.rainbow == 'red'}"><font color="red">Red Color</font></c:if>
  32. <c:if test="${param.rainbow == 'orange'}"><font color="orange">Orange Color</font></c:if>
  33. <c:if test="${param.rainbow == 'yellow'}"><font color="yellow">Yellow Color</font></c:if>
  34. <c:if test="${param.rainbow == 'green'}"><font color="green">Green Color</font></c:if>
  35. <c:if test="${param.rainbow == 'blue'}"><font color="blue">Blue Color</font></c:if>
  36. <c:if test="${param.rainbow == 'indigo'}"><font color="indigo">Indigo Color</font></c:if>
  37. <c:if test="${param.rainbow == 'violet'}"><font color="violet">Violet Color</font></c:if>
  38. <c:if test="${param.rainbow == 'colors'}"><font color="black">Choose a color</font></c:if>
  39. <%@ include file="../../footer.html" %>