Hi,
correct answers are page and include.
the answers aren't correct(taglib and include), for instance I have mytag.tagx file:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:directive.tag pageEncoding="UTF-8"/>
<jsp:directive.attribute name="message"/>
<jsp:directive.tag display-name="mytag"/>
<jsp:directive.include file="mytag1.tagx"/>
</jsp:root>
and mytag1.tagx
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:text>${message}</jsp:text>
</jsp:root>
Only the following directives are valid for tag files:
taglib, include, tag, attribute, variable.
I can use directives include, page, tag(not taglib!!!!), attribute, and variable.
About Question com.enthuware.ets.scwcd.v5.2.346 :
Moderators: Site Manager, fjwalraven
-
- Posts: 33
- Joined: Mon May 02, 2011 5:09 pm
- Contact:
-
- Posts: 33
- Joined: Mon May 02, 2011 5:09 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.346 :
In two words: correct answers are page and include. taglib isn't valid directive for tag file
-
- Posts: 60
- Joined: Wed Apr 23, 2014 6:38 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.346 :
Given the two comments above, and to clarify for those who may wish to confirm this, page is not an applicable directive for tag files.
Paraphrasing from the hard-to-paste table JSP.8-1 from V.2 of the spec, JSP.8.5, page 215 in my copy:
Paraphrasing from the hard-to-paste table JSP.8-1 from V.2 of the spec, JSP.8.5, page 215 in my copy:
This is not a bad place to visit, if one wishes to verify what directives are available, and why. All are listed and explained in detail.Directive page is not available. A tag file is not a page. The tag directive must be used instead. If this directive is used in a tag file, a translation error must result.
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.346 :
Fixed.
Thank you for your feedback!
Thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 13 guests