This isn't possible. JSP is deprecated since JSF 2.0 in December 2009 (almost 4 years ago already!). All new JSF 2.x specific tags are available to Facelets only and not to JSP. Basically, with JSP you've only JSF 1.x specific tags available. In other words, the JSF 2.x tags <f:metadata>
, <f:viewParam>
, <f:ajax>
, <h:head>
, <h:outputScript>
, etc are not available to JSP.
There's no point working with deprecated technology. It's high time to migrate.