By default, assuming you don't use the global exception handling mechanism, and assuming nothing on the client would alter anything, your exception will be shown in the browser.
If this isn't what you want to happen, there are a number of ways to deal with it. I personally suggest the Struts global exception handling mechanism: http://struts.apache.org/struts-doc-1.2.7/userGuide/building_controller.html#exception_handler -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Sun, November 6, 2005 9:27 pm, tmmet said: > Hi, > I have a question. > I haver a class which extends from Struts Action class. > The execute method has been overridden as below. > What will happen if I throw an application exception from the execute(). > Will it be displayed on the jsp page/browser? > Thanks in advance, > > Please see my code snippet below. > > public ActionForward execute (ActionMapping mapping, > ActionForm form,HttpServletRequest request, > HttpServletResponse response) throws Exception > { > //perform database operation > int i = new DAO().getId(); > if(i == 9) > throw new DataInvalidException("Data is invalid"); > > } > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]