アットウィキロゴ

KS > practice > Practice17jsp1

  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. <h2>ログイン</h2>
  16. <form action="/j2eepractice/practice17_2" method="post">
  17. ユーザーID<input type='text' name='param1' value=<%=name1%>><br/>
  18. パスワード<input type='password' name='param2' value=<%=name2%>><br/>
  19. <input type='submit' value='ログイン'>
  20. </form>
  21.  
  22.  
  23. </center>
  24. </body>
  25. </html>
  26.  
最終更新:2013年06月03日 22:29