0
下面包括JSP是我在JSP頁面在JSF頁面
example.jsp
<html>
<body>
//report using mysql connection
</body>
</html>
現在,我想在我的JSF頁面的一個此頁面。我怎麼能這樣做?
我試着用下面,但是我得到錯誤的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.
代碼我想是
<h:form>
<ui:include src="detailedReports.jsp" />
</h:form>
任何幫助表示讚賞。
如果你有一個答案,應張貼*作爲一個答案*不添加到問題的文本。 – 2012-07-13 02:38:38
@GeorgeStocker:曾經有一次我收到版主的反饋,只回答問題,因此我自己提出質疑。現在我添加了答案... – 2012-07-13 13:58:01
我會非常有興趣知道誰告訴你,因爲我們有關於meta的常見問題解答,告訴你如何處理這個問題。 http://meta.stackexchange.com/questions/12513/should-i-not-answer-my-own-questions – 2012-07-13 17:54:12