アットウィキロゴ

KS > practice > Practice14jsp2

  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <%
  6. String name1 = (String) session.getAttribute("para1");
  7. String name2 = (String) session.getAttribute("para2");
  8. %>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  11. <title>Insert title here</title>
  12. </head>
  13. <body>
  14. <center>
  15. <h1>足し算</h1><br/><br/>
  16. <form action='/j2eepractice/practice14_3.do' method='post'>
  17. <input type='text' name='param1' value=<%=name1 %>>
  18. +
  19. <input type='text' name='param2' value=<%=name2 %>><br/><br/>
  20. <input type='submit' value='計算'>
  21. </form>
  22.  
  23. </center>
  24. </body>
  25. </html>
  26.  
最終更新:2013年05月31日 08:20