Hi,
docs say not to use the depracated perform(). Use execute() instead.
I require execute() because perform() does not handle SQL exception.
I get a compile error class LoadUserCategoriesController must use abstract interface
perform().
HERE IS THE CODE:
REQUIRE THIS (get an error that LoadUserCategoriesController implements Controller
does not support execute() ):
public class LoadUserCategoriesController extends Action implements Controller{
public void execute(ComponentContext tilesContext,HttpServletRequest request,
HttpServletResponse response, ServletContext
servletContext)throws Exception{
}
CAN ONLY DO THIS:
public class LoadUserCategoriesController extends Action implements Controller{
public void execute(ComponentContext tilesContext,HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)throws IOException,
ServletException{
}
}
Any suggestions? If not, How can I get around the Exception handling problem.
My database requires handling an SQLException!