nishant dahiya wrote:Hi Saif,
I am facing the same problem as above and my program is almost similar. Also my helloWorld.jsp file is inside Web-content and not web-inf. Still i am getting the error that resource not found. All my tomcat connections are fine because it shows tomcat welcome page when i go to localhost. I am new to this and have been struggling to this for last 3-4 hours. I would appreciate any help.
PS: Attached are the screenshots.
Thanks,
Nishant.
Paweł Baczyński wrote:
Mohan Mehra wrote:what about the return in catch?
It does not matter. If you have a return statement in finally block, this return always is executed (unless the application is closed before it reaches this return statement).
Tushar Goel wrote:Because finally have higher precedence. It will executed at any case so whatever written in to finally be executed. So that's why you see return in finally is executed.
There is only 1 case in which finally will not be executed that's when program itself terminated before running reaching finally.
Ulf Dittmer wrote:You need to clarify what you mean by "1000 logins at a time". 1000 concurrent user sessions is not large number; any modern server should be able handle that (assuming that the web app and the DB are performant). If you actually mean that 1000 users are accessing the server at the same instance in time -1000 concurrent requests instead of 1000 concurrent sessions- then you probably need to think about load balancing. I'm not exactly sure what a "leave management system" would be doing, but it doesn't sound particularly taxing in its complexity.