FileDocCategorySizeDatePackage
CreateTaskBean.javaAPI DocExample681Thu Jul 07 09:57:22 BST 2005com.oreilly.jbossnotebook.todo.servlet

CreateTaskBean

public class CreateTaskBean extends Object

Fields Summary
private String
name
Constructors Summary
Methods Summary
public java.lang.Stringcreate()

        try {
            TaskMasterLocalHome home   = TaskMasterUtil.getLocalHome();
            TaskMasterLocal     master = home.create();
            
            System.out.println("Created: " + master.createTask(UserBean.user(), name));

        } catch (Exception e) {
            e.printStackTrace();
        }

        return null;

    
public java.lang.StringgetName()

        return name;
    
public voidsetName(java.lang.String name)

        this.name = name;