Code: Select all
<jsp:directive.include file="test.js" content-type="application/JavaScript" />
Code: Select all
<jsp:directive.include file="test.js" />
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 ?!