Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

who can explain the item to me?

 
Niu Xiuyuan
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • 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"?
 
ersin eser
Ranch Hand
Posts: 1072
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but the answer is "no".
could u explain it for me?
 
Reda Mokrane
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Axel Janssen
Ranch Hand
Posts: 2166
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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" />.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic