Developing the Auction Catalog Module

Next we need to generate the WML pages for displaying the auction catalog. We used the MVC technique using command beans to accomplish this for the HTML pages. An added advantage of the MVC technique is that you only need to modify the presentation layer to generate different content such as WML for wireless access. You could enhance the controller JSP to detect the source of the request, a WML browser or an HTML browser, and redirect the request to a page that is generating HTML or WML content.

One way to determine the source of the request is from the request headers. Some headers that you have been using are Cookies as you saw in Chapter 9, "Personalizing the Web Site," and Referer and Authorization information ...

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.