indexJSP.jsp 657 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <%@ page import="java.sql.SQLOutput" %>
  2. <%@ page import="java.util.Date" %>
  3. <%--
  4. Created by IntelliJ IDEA.
  5. User: Lenovo
  6. Date: 2023/11/5
  7. Time: 9:36
  8. To change this template use File | Settings | File Templates.
  9. --%>
  10. <%@ page contentType="text/html;charset=UTF-8" language="java"%>
  11. <html>
  12. <head>
  13. <title>jsp页面</title>
  14. </head>
  15. <body>
  16. <h1>当前这是jsp页面</h1>
  17. ${userName}
  18. <br>
  19. 数据长度===>${userList.size()}
  20. 这是list集合${ not empty userList}
  21. <hr>
  22. 1+2=${1+2}
  23. <hr>
  24. 2+3*4====${2+3*4}
  25. <%--除--%>
  26. 9除以3=${9/3}
  27. <br>
  28. ${8/3}
  29. <hr>
  30. ${7 div 2}
  31. 取余 ${9%2} === ${ 9 mod 2}
  32. == eq ===>${2 == 2} ${1 eq 3}
  33. <hr>
  34. </body>
  35. </html>