FileDocCategorySizeDatePackage
FindBookSimpleTag.javaAPI DocApache Tomcat 6.0.141631Fri Jul 20 04:20:32 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;