JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 654 Page Views: 

Can you stop JSP execution in the middle of processing a request?



Posted By: Avi Date: 4 November 2010 02:47:57 PM
 Answer:

Yes, by using the return statement to stop the processing of JSP. Where JSP is compiled to servlet and all the statements will go inside service method, so you can stop the processing using return statement in any time.


Posted By: avibtech


Date: 4 November 2010 02:47:57 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image LWzABD
Related Questions
JSP : What is a Java Bean?

What is a Java Bean?

A Java Bean is a software component that has been designed to be reusable in a variety of different ....
Category: JSP Date: 11/2/2010 6:05:58 PM
JSP : How does JSP handle runtime exceptions?

How does JSP handle runtime exceptions?

By using errorPage attribute of page directive JSP handles runtime exceptions and set isErrorPage = ....
Category: JSP Date: 11/2/2010 5:32:57 PM
JSP : What is the life cycle of servlet?

What is the life cycle of servlet?

1: the server loads and initializes the servlet by calling the init method. 2: This init() method ....
Category: JSP Date: 11/2/2010 5:32:56 PM
JSP : What are context initialization parameters?

What are context initialization parameters?

Context initialization parameters are specified by the <context-param> in the web.xml file and....
Category: JSP Date: 11/2/2010 4:59:56 PM
JSP : How can we import a Java package in a JSP page?

How can we import a Java package in a JSP page?

Following page directive is used to import Java package in a JSP page: &lt;%@ page import="....
Category: JSP Date: 10/30/2009 6:01:00 AM