Displaying the Fields
The bulk of the page view.jsp is now just an HTML form with 5 input elements. . .
<form method=post action=update.jsp>
Login ID:
<input type=text size=10 name=login
value=‘<jsp:getproperty name=“dbs” property=“login”/>’ >
. . . 4 more input elements for the other fields . . .
</form>
For this to work, the Bean class must have get methods for the 5 fields, login, lastname, firstnames, email, and dept.
One slightly odd feature is the nesting of the XML element within an HTML tag.
- One could put the initial text in the body of a small textarea element instead.