Page 1 of 1

About Question enthuware.jwpv6.2.1243 :

Posted: Mon Dec 08, 2014 8:14 am
by shareef.hiasat
greetings please clarify this to me am confused

Code: Select all

<jsp:directive.include file="test.js" content-type="application/JavaScript" />
isnt the same as

Code: Select all

<jsp:directive.include file="test.js" />
why the second is the correct answer and FYI the explanation of the first option

is

content-type is invalid here. As far as the webapp container is concerned, the content should be syntactically a valid JSP document. It doesn't look at the content-type. The client browser never see the jsp tags. It only sees the resulting content.

what is meant by invalid here in bold above ?! :?:

Re: About Question enthuware.jwpv6.2.1243 :

Posted: Mon Dec 08, 2014 9:29 am
by admin
content-type is an invalid attribute for jsp:directive.