Download as pdf
Download as pdf
You are on page 1of 1
chap JavaB Teo this point, we have worked only with static content: a client makes a request and 4 standard response is generated, The real Web is obviously much more dynamic in nature than this simple approach, and JavaServer Page technology provides a wealth of support {for producing dynamic Web applications. In this chapter, we will introduce forms as a mechanism for transmitting dynamic information as part of the client request. Following that, JavaBeans are presented and combined with Hypertext Markup language (HTML) forms to simplify dynamic Web applications. This chapter concludes with an example application that demonstrates building a simple dynamic Web application 3.1 HTML Forms ‘The standard method for building a Web site is to present HTML pages toa client. The client ‘can navigate through the HTML pages by clicking hyperlinks and using the browser's "back™ button. While this model is useful for some application domains, a more interactive model Is required for many domains, including e-commerce. Fortunately, the World Wide Web Consortium (W3C) has included the form element ‘within their HTML (and XHTML) recommendations. The fora element and the related form controls allow a developer to obtain a variety of information, which is sent back to the server. This data can be used to generate dynamic Web pages, which are customized for a Client based on the input data, 43

You might also like