I'm sure your right Dan. That code is pretty old now and I would do it
differently today. But at the time given my understanding, this is what I came
up with. Actually couldn't tell you why I did it that way :)
The thing to focus on here in the example is the use of HTML comments to
"embed"
I probably have not shown you enough in terms of setup. There is more to
configure this completely. I will try to outline this shortly. To answer your
question , I don't rethrow anything. It's not necessary. Your struts actions
have the following signature:
public ActionForward exe
I use declaritive exception handling which is built into Struts. Works great
for me. I really don't use custom exceptions that much any more because it's
harder to track the original error. Also, I don't clutter my code with alot of
try/catch blocks unless it's absolutely necessary. I allow
3 matches
Mail list logo