0

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.

George Stocker
  • 57,289
  • 29
  • 176
  • 237
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
  • If you have an answer, it should be posted *as an answer*, not added to the text of the question. – George Stocker Jul 13 '12 at 02:38
  • @GeorgeStocker : Once before I had received feedback from moderator to put answer in question only, hence I put in question itself. Now I added answer... – Fahim Parkar Jul 13 '12 at 13:58
  • 1
    I'd be *very* interested to know who told you that, since we have FAQs on meta that tell how to handle this. http://meta.stackexchange.com/questions/12513/should-i-not-answer-my-own-questions – George Stocker Jul 13 '12 at 17:54
  • @GeorgeStocker : Have a look at [this](http://stackoverflow.com/questions/11285363/storing-retrieving-images) question of my own. casperOne delete my answer and posted the same in question... – Fahim Parkar Jul 13 '12 at 21:44
  • @GeorgeStocker : also when you reply please mind adding @ FahimParkar before answer so that I will get notification that someone send me some note.. else I won't be able to read your reply. I am saying this because I didn't get any notification for your "I'd be very inter....." note... – Fahim Parkar Jul 13 '12 at 21:47
  • the notification system may be slower, but the system removes the @OP name whenever it's appended. This is your post, you'll receive notifications on all answers and comments to it, regardless of who they're directed at. – George Stocker Jul 13 '12 at 22:47
  • @GeorgeStocker : okay, I take my words back. :) – Fahim Parkar Jul 13 '12 at 22:52

1 Answers1

2

I used omnifaces for the same.

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

did the trick....

Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276