to an error page. I want
to know is there any problems in using the return statement in servlets/jsp.
Antony Paul
- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 31, 2003 12:00 PM
Subject: Re: Use of return statement
the return statement in servlets/jsp.
Antony Paul
- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 31, 2003 12:00 PM
Subject: Re: Use of return statement in servlet.
Antony Paul wrote:
Hi,
If any one feel it off
Subject: Re: Use of return statement in servlet.
Anthony, putting a return in a servlet code will not create any state
problem for the servlet itself. You could have problems if you have
opened resources that need finalization or closing before returning, for
example DB connections, or opened
Hi,
If any one feel it off topic mark it as off topic.
I want to exit from a servlet if no database connection is available. For
this can I use a return statement in the beginning of a servlet. Will it
cause any state problems. I dont like putting the code in an if block. There
will be lots of
Antony Paul wrote:
Hi,
If any one feel it off topic mark it as off topic.
I want to exit from a servlet if no database connection is available. For
this can I use a return statement in the beginning of a servlet. Will it
cause any state problems. I dont like putting the code in an if block.