Re: suggestion about prepare interceptor
lingcm <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <7627264.1148297901595.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
[code]
try {
String altMethodName = ALT_PREPARE_PREFIX + methodName;
method = action.getClass().getMethod(altMethodName,
new Class[0]);
} catch (NoSuchMethodException e1) {
// throw the original one
throw e;
}
[/code]
I think should not throw the NoSuchMethodException in here. we should ignore it if no prepare{actionName} found for current mehtod.
Thanks & Regards
Denis
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=30890&messageID=61574#61574
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]