<form action="interface.jsp" method="post">
<input type="text" name="accttxtbox" value="Enter Account number">
<% if(request.getParameter("createacct" != null)){%>
<jsp:useBean id= "creditCardBean" class = "creditcardproject.CreditCard"/>
<%long AccountNo=getNewAccount()%>
<%accttxtbox.value(AccountNo)%>
<% double CreditLimit =creditCardBean.CreditLimit %>
<% double TotalCharges =creditCardBean.TotalCharges %>
<% double TotalPayments =creditCardBean.TotalPayments %>
<tr><th>Account</th><th>CreditLimit</th><th>TotalCharges</th><th>TotalPayments</th></tr>
<tr>
<td><%= AccountNo %></td>
<td><%= CreditLimit %></td>
<td><%= TotalCharges %></td>
<td><%= TotalPayments %></td>
</tr>
<%}%>
<select name="action">
<option value="charge">New Charge</option>
<option value="payment">Make payment </option>
</select>
<br><br>
<input type="submit" name="number" value="Submit">
</form>
Here is my best guess on retrieving values from bean variables and putting them in a jsp. I am at work and have no way to test this. Is this like.. totaly wrong?