The Feature of this Servlet is if it exceeds the size limit (ex:- 15Mb) it should redirect to Jsp/servlet so here im putting the condition of file size check if it is more than 15 mb it should redirect to another jsp or else it it should allow to upload
but im getting the size with in 2 second's but its not redirecting the servlet if it exceeds it ll take time around 20 minutes
So please give me hand on this issue
here im redirecting to either one of the jsp file and even though it redirects its printing "hi dude" message .so my question is how to redirect it with out printing " hi dude" message
So how to avoid the JVM not to execute the code after redirect method
Why do you want to do this ? Why do you have code after the redirect method ?
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 295
posted
0
Is there any solution or what ...?
or else i want to put it in if else block
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 295
posted
0
It is taking time in parsing the request
can we over come this ....
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
If you want to return after the redirect, use the "return" keyword.
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 295
posted
0
Dear David Newton
If you want to return after the redirect, use the "return" keyword.
Can you elobarate this statement
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
I suppose. In this code, doMoreStuff() will execute.In this code, it won't.That's about as elaborate as I can get, though.
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 295
posted
0
Thanks David Newton
I understood the return word concept
But in my previous code
This statement is taking too much of time(3 minutes or more ) but when i execute the same code in my standalone application its taking few secongs(2) how to over come this problem