In this JavaEE JSP Tutorial, we will see how Modal and Rendering Phase of JSF works by creating simple JSP File.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!-- Sample 01: The JSF View --> <f:view> <h:form> Type a 2 Digit Number: <br/> <!-- Sample 02: Renders Input Field to Take user Input --> <h:inputText id="Number" value="#{strNumber}"/> <br/> <!-- Sample 03: Renders a Html Sumbit Button --> <h:commandButton value="Send"/><br/> <h1> You Entered : </h1> <!-- Sample 04: Renders a Html plain text --> <h:outputText value="#{strNumber}" /> </h:form> </f:view> |
Categories: JSP