// check for implicity controllers
controllerClass = checkImplicitController(actionClass);
if (controllerClass == null)
{
throw new ApplicationConfigurationException(actionClass.getName()
+ " is not a Struts Action subclass and does not have a " + Controller.class.getName()
+ " annotation");
}
}
else
{
controllerClass = controller.name();
}
if (!ControllerAction.class.isAssignableFrom(controllerClass))
{
throw new ApplicationConfigurationException(actionClass.getName() + " has a controller class "
+ controllerClass.getName() + " which does not implement the " + ControllerAction.class.getName()
+ " interface");
}
if (!Action.class.isAssignableFrom(controllerClass))
{
throw new ApplicationConfigurationException(actionClass.getName() + " is has a "
+ Controller.class.getName() + " annotation which points to the class " + controllerClass.getName()
+ " which is not a Struts Action subclass");
}
return controllerClass;
}