Installation and Administration Guide
571
July 2004
Customizing the Customer Interface
Once you populate all the required fields of the Customer object, you can
populate that object’s data to the Symposium Web Center Portal database. This
is done using the create method in the Customer class, which creates a new
record in the
customer
table in the database:
objCust.create();
If the create method is unsuccessful (an exception is thrown, and this is logged
and reported to the user using the code in errorpage.jsp
),
this method returns
void (nothing). If the create method succeeds, the customer session can proceed
as normal. Therefore, you add the customer’s registration data to the session so
that it can be readily accessed in subsequent pages.
The relevant section of login.jsp reads as follows:
iCmd = Integer.parseInt(request.getParameter("command"));
Customer objCust = new Customer();
if (iCmd == 2)
{
// new user registering
strUserName = request.getParameter("cust_username");
strPassword = request.getParameter("cust_password");
strCustEmail = request.getParameter("cust_email");
if (objCust.readByEmail(strCustEmail))
{
lngCustID = -1;
failureCode = REASON_EMAIL_EXISTS;
}
else if (objCust.readByUsername(strUserName))
{
Summary of Contents for Symposium Web Center Portal
Page 2: ......
Page 4: ......
Page 6: ...vi Symposium Web Center Portal Publication history Standard 2 0 ...
Page 12: ...xii Symposium Web Center Portal Contents Standard 2 0 ...
Page 370: ...370 Nortel Networks Symposium Web Center Portal Managing Web Communications Standard 2 0 ...
Page 610: ...610 Nortel Networks Symposium Web Center Portal Dashboard utility Standard 2 0 ...
Page 698: ...698 Nortel Networks Symposium Web Center Portal Glossary Standard 2 0 ...
Page 708: ...Reader Response Form Reader Response Form ...
Page 709: ......