In this JavaEE EJB-JPA tutorial, we will create a Html form which performs search operation on the Savings Account.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Insert title here</title> </head> <body> <!-- Sample 6.01: Create form & organize inside the Table --> <form action="http://localhost:8080/EJBWeb/QuerySavingAc" method="post"> <table style="font-family: Verdana; background-color: floralwhite; width: 672px; height: 170px;"> <tr> <td style="text-align: center;" colspan="3"> <h1>Search Savings Accounts</h1> </td> </tr> <tr> <td style="width: 118px; text-align: right;">Account ID :</td> <td style="width: 31px"><input name="Pid" style="width: 227px" type="text" /></td> <td style="width: 41px"><input name="Submit1" style="width: 104px" type="submit" value="Search" /></td> </tr> <tr> <td style="width: 118px; text-align: right;">Person Name :</td> <td style="width: 31px"><input name="Pname" style="width: 227px" type="text" /></td> <td style="width: 41px"><input name="Submit2" style="width: 104px" type="submit" value="Search" /></td> </tr> <tr> <td style="width: 118px; text-align: right;">Balance:</td> <td style="width: 31px"><input name="Balance" style="width: 227px" type="text" /></td> <td style="width: 41px"><input name="Submit3" style="width: 104px" type="submit" value="Search" /></td> </tr> <tr> <td style="width: 118px"></td> <td colspan="2"><input name="BalSearch" style="width: 26px" type="radio" value="-1" /> Less <input name="BalSearch" style="width: 39px" type="radio" value="0" /> Equal <input name="BalSearch" style="width: 26px" type="radio" value="1" /> More</td> </tr> <tr> <td colspan="3"><input name="Submit4" style="width: 616px" type="submit" value="Get All Accounts" /></td> </tr> </table> </form> </body> </html> |
Categories: JavaEE-EJB-Tube