开发者

JSF web page include

开发者 https://www.devze.com 2023-01-09 21:20 出处:网络
I a开发者_运维知识库m currently working on a JAVA web application using JSF, Facelets, JSTL and EL. I have 10 pages that need to include some HTML and Javascript that I have placed into a inc.jspf.

I a开发者_运维知识库m currently working on a JAVA web application using JSF, Facelets, JSTL and EL. I have 10 pages that need to include some HTML and Javascript that I have placed into a inc.jspf.

I have tried to use:

<jsp:include page="inc.jspf" />

but I am getting an error:

The prefix "jsp" for element "jsp:include" is not bound.

Is there another way to accomplish this?

Thanks, Randall


Since you are using facelets, the jsp:include is logically not working - JSP and Facelets are different view technologies. You should use the following instead:

<ui:include src="inc.jspf" />
0

精彩评论

暂无评论...
验证码 换一张
取 消