FileDocCategorySizeDatePackage
GetCategory.javaAPI DocApache Struts 2.0.9 Apps1484Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.ajax.tree

GetCategory

public class GetCategory extends com.opensymphony.xwork2.ActionSupport

Fields Summary
private long
catId
private Category
category
Constructors Summary
Methods Summary
public java.lang.Stringexecute()

        if (catId < 1) {
            // force the root
            catId = 1;
        }

        category = Category.getById(catId);

        return SUCCESS;
    
public CategorygetCategory()

        return category;
    
public voidsetCatId(long catId)

        this.catId = catId;