FileDocCategorySizeDatePackage
SPathTag.javaAPI DocGlassfish v2 API3794Sat May 05 19:17:16 BST 2007org.apache.taglibs.standard.extra.spath

SPathTag

public class SPathTag extends javax.servlet.jsp.tagext.TagSupport

Tag handler that exposes SPath functionality.

author
Shawn Bayern

Fields Summary
private String
select
private String
var
Constructors Summary
public SPathTag()
Constructs a new handler. As with TagSupport, subclasses should not provide other constructors and are expected to call the superclass constructor.

        super();
        init();
    
Methods Summary
public intdoStartTag()

      try {
	SPathFilter s = new SPathFilter(new SPathParser(select).expression());
	pageContext.setAttribute(var, s);
	return SKIP_BODY;
      } catch (ParseException ex) {
	throw new JspTagException(ex.toString(), ex);
      }
    
private voidinit()

	select = var = null;
    
public voidrelease()

        super.release();
        init();
    
public voidsetSelect(java.lang.String select)

	this.select = select;
    
public voidsetVar(java.lang.String var)

	this.var = var;