Bidding on an Item

In this last section, we will use WML forms for submitting information to the server. WML forms are a little different from their HTML counterparts. You need to create input fields to accept user data and create a task and event handler to submit the data to the server. The input fields are similar to the HTML fields, accepting data from text fields, choices, and lists. To submit the data, you need to extract the input field values into postfield instances and define an event handler, go, that submits the fields to the server.

You need to add a card, place, in productview.jsp to allow the user to place the bid while viewing the item information shown in Listing 11.8. Figure 11.13 chronicles the steps performed by the user ...

Get Java Server Pages from scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.