NEW
Font size
WorksheetsJava Server Page
Total questions: 10
Worksheet time: 3mins
The code inside scriplet will be placed in _____ method of jsp life cycle?
jsp_init()
jsp_service()
httpService()
_jspService()
Choose an incorrect statement from the following.
JSP is built on Java Technology so it is platform independent.
The Web Container translate a Servlet into JSP page.
JSP pages are easier to maintain than a servlet.
A JSP page seperates presentation and business logic.
ALL OF THE ABOVE
Which one of the following is a syntax to create a simple JSP?
<html> <body> <% out.print(2*5); %> </body> </html>
<html> <body> <! out.print(2*5); !> </body> </html>
other
<html> <body> <%@ out.print(2*5); %> </body> </html>
None of the above
Which method is called only once in Servlet life cycle ?
initialize()
service()
start()
init()
all of the above
_________ is responsible for managing execution of servlet.
Servlet Context
JVM
Web Container
Server
The code inside scriplet will be placed in _____ method of jsp life cycle?
jsp_service()
jsp_init()
httpService()
other
_jspService()
Choose the correct syntax of include directive?
<% include file="file.jsp" %>
<%@ include page="file.jsp" %>
<%! include page="file.jsp" %>
<%@ include file="file.jsp" %>
Compilation process of JSP page involves:
Parsing of JSP
Turning JSP into servlet
Compiling the servlet
All of the above
All servlet classes are required to be mapped and configured in web.xml.
True
False
Which of the following is true about Initialization phase in JSP life cycle?
Container invokes _jspService() method during Initialization phase.
When a container loads a JSP it invokes the jspInit() method before servicing any requests.
Both of the above.
None of the above.
