FileDocCategorySizeDatePackage
FindBookSimpleTag.javaAPI DocGlassfish v2 API2822Fri May 04 22:34:14 BST 2007jsp2.examples.simpletag

FindBookSimpleTag

public class FindBookSimpleTag extends javax.servlet.jsp.tagext.SimpleTagSupport
SimpleTag handler that pretends to search for a book, and stores the result in a scoped variable.

Fields Summary
private String
var
private static final String
BOOK_TITLE
private static final String
BOOK_AUTHOR
private static final String
BOOK_ISBN
Constructors Summary
Methods Summary
public voiddoTag()


         
        BookBean book = new BookBean( BOOK_TITLE, BOOK_AUTHOR, BOOK_ISBN );
        getJspContext().setAttribute( this.var, book );
    
public voidsetVar(java.lang.String var)

	this.var = var;