A JSP for the Add Sale Form (cont'd)
- The task of creating a date input field defaulting to today's date
is given to the custom tag
dateField and the
DateFieldTag class
- Even though the form is now presented by a JSP, the submit action is
to send the parameters to the Servlet
AddSaleServlet
- This servlet need not be converted to a JSP since it already does
not contain any markup
- Example of appropriately mixing servlets with JSP
- Note: after updating database, request is forwarded to
SalesSummary.jsp