Skip to Main Content
VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and Java Server Pages
book

VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and Java Server Pages

by Ueli Wahli, Greg Behrend, Daniel Peter
March 2000
Beginner to intermediate content levelBeginner to intermediate
472 pages
11h 17m
English
IBM Redbooks
Content preview from VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and Java Server Pages
384 VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and JSPs
}
public String getFname() {
try { return cust.getFname(); }
catch (Exception e) { return ""; }
}
public String getLname() {
try { return cust.getLname(); }
catch (Exception e) { return ""; }
}
Retrieve an Account
For the selected customer we provide a method to retrieve an account from
the list of accounts:
public String getAccount(int i)
throws java.lang.ArrayIndexOutOfBoundsException {
try { account = (Account)accounts.elementAt(i);
return ""; }
catch (Exception e) {
throw new java.lang.ArrayIndexOutOfBoundsException ("....");
}
}
Account Properties
A set of methods provide access to the selected account:
public String getAccid() {
try { return account.getAccid(); }
catch (Excep ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pure Java Server Pages™

Pure Java Server Pages™

James Goodwill
WebSphere Application Server - Express: A Development Example for New Developers

WebSphere Application Server - Express: A Development Example for New Developers

Moore William, Mark Buensalido, Gwendolyn Gaumond, Bo Gong, Ilaria Gorla, Doug Grove, Stelios Psarras, Pasi Valjus, Ryan Karchner
Enterprise Java Programming with IBM WebSphere

Enterprise Java Programming with IBM WebSphere

Peter M. Jakab, Russell Stinehour, Kyle Brown, Jim Amsden, David Pitt, Gary Craig, Mark Weitzel, Greg Hester, Daniel Berg

Publisher Resources

ISBN: 0738415820Purchase bookAdditional Material