#{fortuneTellingService.result}
#{fortuneTellingService.doRetry}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page 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"%> <f:view> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-31j"></meta> <title> result </title> </head> <body> <h:form> <h:panelGrid> <h:outputText value="あなたのラッキー周辺機器は:"/> <h:outputText value="#{fortuneTellingService.result}"/> <h:outputText value="です。"/> <h:commandButton value="別の人を占う"action="#{fortuneTellingService.doRetry}"/> </h:panelGrid> </h:form> </body> </html> </f:view>