Java | Answer them all 1. In a JSP, in order to set a session attribute, you hav
ID: 3718068 • Letter: J
Question
Java | Answer them all
1. In a JSP, in order to set a session attribute, you have to use a scriptlet with the
session implicit object.
(a)true
(b)false
2. Are the TLD files that support the Java tag libraries text files or binary files?
(a)text
(b)binary
3. In a JSP page, you can use the EL technology without using the JSTL.
(a)true
(b)false
4. In Java EE, all the servlet init params configured in the web.xml using the <init-param> can be accessed in a JSP by the EL implicit object initParam.
(a)true
(b)false
5. You cannot use the <c:if> tag to handle the if-else situation in single tag.
(a) true
(b) false
6. In your JSP, suppose you have the following line, <c:set target="$ { book } " property="isbn" value="123456789" />
Then the named variable ${book} must be a bean.
(a)true
(b)false
7. Suppose we have an EL expression: $ {"Java" + "Class"} in a JSP. What is the result of this expression?
(a) JavaClass
(b)an error
Explanation / Answer
1.False - scriplet wont requried using jstl tag <c : set> we set the attribute
2.text files - tld tag import text files
3.True - we can you El without jstl
4.True- we can use by EL
5.True - for if else stution we use two tags cant manage with single tag
6.false - ${book} is not a bean.
7.false - it gives error
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.