Chapter 7: Building Shopping Cart Applications


To generate Hyper Text Markup Language (HTML), servlets must supply formatted strings to println() calls. This technique clogs Java™ code with line after line of hard-to-comprehend HTML. Furthermore, when servlets generate HTML, Web page design requires programmers. JavaServer Pages (JSP) pull HTML out of Java code and create a role for HTML designers. Site development can proceed along parallel tracks (Java design and HTML design), thereby delivering a Web site faster. JavaServer Pages also encourage loose coupling between business logic components and presentation components, thereby making reuse of both more likely. The shopping cart application discussed in this chapter examines the role of JSP in Web architectures and offers a practical example of how to get the most out of your e-business applications.




Electronic Commerce (Networking Serie 2003)
Electronic Commerce (Charles River Media Networking/Security)
ISBN: 1584500646
EAN: 2147483647
Year: 2004
Pages: 260
Authors: Pete Loshin

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net