Re: Use of return statement in servlet.

2003-10-31 Thread Antony Paul
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

Re: Use of return statement in servlet.

2003-10-31 Thread Rodrigo Ruiz
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

Re: Use of return statement in servlet.

2003-10-31 Thread Antony Paul
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

Use of return statement in servlet.

2003-10-30 Thread Antony Paul
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

Re: Use of return statement in servlet.

2003-10-30 Thread Nikola Milutinovic
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.