Search Header Logo

Javaweb

Authored by Phương Đình

English

University

Used 2+ times

Javaweb
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The include() method of RequestDispatcher

Sends a request to another resource like servlet, jsp or html
Includes resource of file like servlet, jsp or html
Appends the request and response objects to the current servlet

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?

VBScript only
Jscript only
Java only
VBScript, Jscript and Java

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A JSP is transformed into a(n):

Java Applet
Java Servlet
Java Script

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the key difference between using a <jsp:forward> and HttpServletResponse.sendRedirect()?

forward executes on the server while sendRedirect() executes on the client
forward executes on the client while sendRedirect() executes on the server
The two methods perform identically
None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can not be used as the scope when using a JavaBean with JSP ?

application
response
request
session

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the following code ? <% if( strPassword.equals("boss")) { <jsp:forward page="Welcome.jsp" flush="true"/> } else { } %>

Unmatched bracket in for statement
Flush attribute must be false
Keyword 'file' should be used instead of 'page' in the action
Actions cannot be used within scriptlet blocks

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the statement that best describes the relationship between JSP and servlets:

Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage
JSP and servlets are unrelated technologies
Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination
JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?