Search Header Logo

JSTL

Authored by Kiều Thị

Professional Development

1st - 10th Grade

Used 8+ times

JSTL
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Kết quả của đoạn mã sau:

<c:set var = "salary" scope = "session" value = "${2000*2}"/> <c:if test = "${salary > 2000}">

<p>My salary is: <c:out value = "${salary}"/><p> </c:if>

My salary is: 4000

My salary is: 2000

Không in ra kết quả

My salary is:

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Kết quả của đoạn mã sau:

<c:set var = "salary" scope = "session" value = "${1000*2}"/> <c:if test = "${salary <= 2000}">

<p>My salary is: <c:out value = "${salary}"/><p> </c:if>

My salary is: 4000

My salary is: 2000

Không in ra kết quả

My salary is:

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Kết quả của đoạn mã sau

<c:forEach var = "i" begin = "1" end = "3"> Item

<c:out value = "${i}"/><p> </c:forEach>

Item 1

Item 2

Item 0

Item 1

Item 2

Item 1

Item 2

Item 3

Không có đáp án đúng

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là cách viết taglib jstl core đúng

<%@ taglib uri = "http://java.sun.com/jsp/core" prefix = "c" %>

<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>

<%@ taglib uri = "http://java.sun.com/jstl/core" prefix = "c" %>

<%@ taglib uri = "http://java.sun.com/jsp/jstl" prefix = "c" %>

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Thẻ Thẻ <c:redirect >trong JSTL

dùng để làm gì

Thu nhận một URL tuyệt đối hoặc quan hệ và trưng bày nội dung của nó tới hoặc trang đó, một String trong 'var', hoặc một Reader trong 'varReader'

Thêm một parameter tới một URL của thẻ đang chứa 'import'

Tạo một URL với các tham số truy vấn tùy ý

Redirect tới một URLmới

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Đoạn mã sau cho kết quả là gì?

<c:set scope="request" var="greeting" value="Hello every body" /> Greeting: <c:out value="${greeting}"/>

Greeting Greeting

Greeting request

Greeting greeting

Greeting Hello every body

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?

Discover more resources for Professional Development