| C:\russ\dev\CoreJSF\web\index.jsp |
<%@page pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <f:view> <head> <title>A Simple JavaServer Faces Application</title> </head> <body> <h:form> <h3>Please enter your name and password.</h3> <table> <tr> <td> Name: </td> <td> <h:inputText value="#{user.name}" /> </td> </tr> <tr> <td> Password: </td> <td> <h:inputText value="#{user.password}" /> </td> </tr> </table> <p> <h:commandButton value="login" action="login" /> </p> </h:form> </body> </f:view> </html> <!-- vim: set tabstop=2 shiftwidth=2 noexpandtab: -->