Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Epractice Lab review exam 3 about <c:set>

 
Bartender
Posts: 1924
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Which of the JSTL fragments in the choices are similar to the following
code fragment?
<%String productName ="Training Lab";
pageContext.setAttribute(productName);%>

choose three
a.<c:set var="name" scope="page" value="Training Lab"/>
b.<c:set var="name" scope="page" default="" value="Training Lab"/>
c.<c:set var="name" scope="page" value="Training Lab"></c:set>
d. <c:set var="name"> Training Lab</c:set>
e. <c:set var="name scope="page"> Training Lab</c:set>
f. <c:set var='name' scope="page">${trainingLab}</c:set>
Given answer : A, C,D


I think E is one of the option too.
 
Creator of Enthuware JWS+ V6
Posts: 3348
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In 'e' there is a closing quote missing:

"name scope

 
Himai Minh
Bartender
Posts: 1924
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not type the " by mistake.
But in the real question it is like this:<c:set var="name" scope="page"> Training Lab</c:set>.
I believe this is one of the options.
 
rubbery bacon. crispy tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic