}
}
Class getControllerClass(Class actionClass)
{
@SuppressWarnings("unchecked")
Controller controller = (Controller) actionClass.getAnnotation(Controller.class);
Class controllerClass = null;
if (controller == null)
{
// 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 "