About Question com.enthuware.ets.scwcd.v5.2.346 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
max2fl
Posts: 33
Joined: Mon May 02, 2011 5:09 pm
Contact:

About Question com.enthuware.ets.scwcd.v5.2.346 :

Post by max2fl »

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.

max2fl
Posts: 33
Joined: Mon May 02, 2011 5:09 pm
Contact:

Re: About Question com.enthuware.ets.scwcd.v5.2.346 :

Post by max2fl »

In two words: correct answers are page and include. taglib isn't valid directive for tag file

bluster
Posts: 60
Joined: Wed Apr 23, 2014 6:38 pm
Contact:

Re: About Question com.enthuware.ets.scwcd.v5.2.346 :

Post by bluster »

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:
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.
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.

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scwcd.v5.2.346 :

Post by admin »

Fixed.
Thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests