Pregunta

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.

¿Fue útil?

Solución

I used omnifaces for the same.

<o:resourceInclude path="detailedReports.jsp" />

did the trick....

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top