Methods Summary |
---|
public int | doStartTag()
JspWriter out = pageContext.getOut();
try {
if (fmt.equalsIgnoreCase("short")) {
out.println(customer.getFirstName() + " " +
customer.getLastName());
} else if (fmt.equalsIgnoreCase("long")) {
out.println(customer.getFirstName() + " " +
customer.getLastName() + " " + customer.getAddress());
} else {
out.println("invalid format");
}
} catch (IOException ex) {}
return SKIP_BODY;
|
public org.apache.taglibs.standard.examples.beans.Customer | getCustomer()Getter for property customer.
return customer;
|
public java.lang.String | getFmt()Getter for property fmt.
return fmt;
|
private void | init()
customer = null;
fmt = null;
|
public void | release()
super.release();
init();
|
public void | setCustomer(org.apache.taglibs.standard.examples.beans.Customer customer)Setter for property customer.
this.customer = customer;
|
public void | setFmt(java.lang.String fmt)Setter for property fmt.
this.fmt = fmt;
|