Moving On

I l @ ve RuBoard

In this chapter, you've learned how to create a bean that interacts with JSP pages. To do this successfully, a bean class needs to provide accessors for all the properties of the object.

It also needs to provide methods to read and write these objects from the database if the object persists over time. This requires having some key that can be used to access a record uniquely.

Filling out forms requires form validation. Using a HashMap to store the validation errors lets you get at specific field errors without needing a separate property for each one. Tomcat supplies a convenient way to send e-mail from Java. You learned in this chapter how it can be used to implement a lost-password function.

Finally, you used cookies to store the username and password so that customers can be automatically logged in.

With the rudiments of user login and creation out of the way, it is time to move on to some product display. This is covered in the next chapter. However, don't think that you're finished with the Customer object just yet. You'll still have to tackle the address book and wallet before you're finished.

I l @ ve RuBoard


MySQL and JSP Web Applications. Data-Driven Programming Using Tomcat and MySQL
MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL
ISBN: 0672323095
EAN: 2147483647
Year: 2002
Pages: 203
Authors: James Turner

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