SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 106 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"



Back to the Start Page



The first iteration of Celebrity Collector will be very simple. The Start page will
contain a login form (for the existing users) and a link to the Registration page
(for the newcomers). Those who have successfully logged in, and those who have
successfully registered will proceed to the ShowAll page and see the whole existing
collection listed there.
The Auxiliary Classes
Before going into Tapestry-specific work, let's prepare some helper classes. First
of all, since we are going to deal with celebrities, it will make sense to create a
Celebrity class. Create a new package, com.packtpub.celebrities.model, and
then add to it a new class, naming it Celebrity. The contents of this class can be as
simple as this:
package com.packtpub.celebrities.model;
import java.text.SimpleDateFormat;
import java.util.Date;
Simple Components
[ 82 ]
public class Celebrity
{
private long id;
private String firstName;
private String lastName;
private Date dateOfBirth;
private Occupation occupation;
public Celebrity()
{
}
public Celebrity(String firstName, String lastName,
Date dateOfBirth, Occupation occupation)
{
this.


Pages:
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6