oops typo below last execute() should be perform()
----- Original Message -----
From: "Barry Volpe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 11:07 AM
Subject: Tiles implements Controller does not work with execute()
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 perform(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!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]