A Simple JSF Application
Here is the rendering of a
LOGIN FORM produced by JSF.
Here is the JSP for it: index.jsp.
- An HTML file with additional tags
- HTML tags: body, h3, table, etc.
- JSF tags: f:view, h:form, h:inputText,
h:inputSecret, h:commandButton
- Input fields are linked to object properties. E.g., attribute
value="#{user.name}" links text field with name property
of a user object (bean)
- Two taglib declarations declare the JSF tag libraries
Here is the JSP for the page sent when Login button is clicked:
welcome.jsp.
Both pages could be visually improved by a graphic artist.