I noticed that there are two different ways in which exceptions are thrown
from within Struts tags. One way is like this:
if (somethingBadHappened) {
throw new JspException(messages.getMessage(...));
}
and the other is like this:
if (somethingBadHappened) {
JspException e = new JspException(messages.getMessage(...));
RequestUtils.saveException(pageContext, e);
throw e;
}
I'm guessing that the first is "the old way" and the second is "the new
way", and that I should use the latter when writing new code (and
potentially when updating existing code). Is this correct?
Also, is there a reason we throw JspException instead of JspTagException?
Thanks!
--
Martin Cooper
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>