• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

who can explain the item to me?

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a question in a mock:
Attribute flush of jsp include action is a mandatory attribute
1) yes
2) no
3) Only the first time a jsp include action appears in a page

what means "mandatory attribute"?
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<jsp:include page="path" flush="true" />

page and flush are the attribute of <jsp:include> tag.
In version 1.1 of JSP Spec it was required to set it to true
In version 1.2 of JSP Spec it is not required and defaults to false.
 
Niu Xiuyuan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
but the answer is "no".
could u explain it for me?
 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !!!
mandatory attribute = needful attribute = obligatory attribute

The question: Attribute flush of jsp include action is a mandatory attribute
The answer is "no" because flush of jsp include action is not a mandatory attribute mean you can use <jsp:include page="path" /> without the flush attribute <jsp:include page="path" flush="true" />.
correct me if i'm wrong
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not mandatory to set, because it defaults to false, if we omit it (as Ersin said).
correct me if I am wrong.
Axel
 
Reda Mokrane
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Axel,
you are correct.
as I said


The answer is "no" because flush of jsp include action is not a mandatory attribute mean you can use <jsp:include page="path" /> without the flush attribute <jsp:include page="path" flush="true" />.

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mandatory attribute = needful attribute = obligatory attribute = required attribute.
I agree with all others, it is not a required (mandatory) attribute.
- satya
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic