Can I use declarative exception in DispatchAction? I'm not having any luck
with it.
In my code, I throw an Exception from one of the methods (ex.
findByPrimaryKey()) but I get the following message
[ERROR] FinderAction - -Dispatch[/adminDiv] to method findByPrimaryKey returned an
exception <java.lang.reflect.InvocationTargetException>
My action configuration is
<action path="/finderAction" type="com.xxx.xxx.FinderAction" scope="request
" name="findForm" parameter="method" input="div.edit.page">
<exception key="error.division.not.found" type="
com.xxx.xxx.FinderException" path="div.search.page" />
<forward name="displaypage" path="div.display.page"/>
</action>
signature of my DispatchAction's method
public ActionForward findByPrimaryKey(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException, Exception {
}
>From within that method, I invoke a BO that throws a FinderException as specified in
>the exception tag above.
Any assistance is appreciated.
**********************************************************************
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged. It is
intended only for the use of the individual(s) named above. If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws. If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer. Thank you.
**********************************************************************
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>