hi all please solve me this?
--------------------------
public abstract class ActionBase
{
public static
String ACTION_NAME=null ;
}
-----------------------------
public class AddEmployeeAction extends ActionBase
{
static
{
ACTION_NAME ="addEmployee";
}
}
-----------------------------------
public class AddGroupAction extends ActionBase{
static
{
ACTION_NAME ="addGroup";
}
}
------------------------------------
String action="addEmployee";
if (action.equals(AddEmployeeAction.ACTION_NAME))
doXXXX();
if(action.equals(AddGroupAction.ACTION_NAME))
doYYYY();
else doErorrMethod();
please help which will be performed
thaks in advance