A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
is there any Compulsory to give the try /catch in jsp page.
Joined: Jun 09, 2010
Sep 13, 2011 07:32:33
is there any Compulsory to give the try /catch in
Joined: Mar 18, 2010
Sep 13, 2011 08:07:54
What are you trying to accomplish and what are the situations, where you except an exception to be thrown.
As a rule of thumb, avoid any
code or scriptlets in jsp and instead use custom tags.
using try/catch in jsp is a bad design. Instead put all your java logic in a bean or custom tags and handle the exception in those classes instead of jsp.
But, what are the situations you expect an exception be thrown in jsp.
Author and ninkuma
Joined: Jan 10, 2002
Sep 13, 2011 08:11:49
No. In fact, since you should have
Java code in a JSP page, there's no need for try/catch.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: is there any Compulsory to give the try /catch in jsp page.
Do I need to use ! for declarations?
XP Read-Only fiasco
error - prepared statement
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015