<%@ page language="java" contentType="text/html; charset=Windows-31J" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <html> <head> <title>JSFアプリケーション</title> <meta http-equiv="Content-Type" content="text/html; charset=Windows-31J"> </head> <body> <f:view> <h:form> <table> <tr> <th>ID</th> <td> <h:inputText id="id" value="#{loginBean.id}" required="true" /> <h:message for="id"/> </td> </tr> <tr> <th>Pass</th> <td> <h:inputSecret id="password" value=" #{loginBean.password}" required="true" /> <h:message for="password"/> </td> </tr> </table> <h:commandButton action="#{loginBean.doLogin}" value="ログイン" /> </h:form> </f:view> </body> </html>