Reputation: 31637
Below is what I have in JSP page
example.jsp
<html>
<body>
//report using mysql connection
</body>
</html>
Now I want to include this page in one of my jsf page. How could I do that?
I tried with below, however I get error as javax.faces.view.facelets.FaceletException: Error Parsing /detailedReports.jsp: Error Traced[line: 1] The markup in the document preceding the root element must be well-formed.
Code I tried is
<h:form>
<ui:include src="detailedReports.jsp" />
</h:form>
Any help is appreciated.
Upvotes: 0
Views: 1076
Reputation: 31637
I used omnifaces for the same.
<o:resourceInclude path="detailedReports.jsp" />
did the trick....
Upvotes: 2