Why this does not works??? (I use <jsp: include.> to contain two jsp files)
843838Mar 15 2007 — edited Mar 15 2007I have a main.jsp, and in this main.jsp, I have two part, leftButton.jsp and view.jsp, I want to include the leftButton.jsp and view.jsp to main.jsp.
The code of main.jsp is like follows:
<%@ page language="java" contentType="text/html" %>
<html>
<head>
<title>JSP include element test</title>
</head>
<body>
<table>
<tr>
<td><jsp: include page="leftButton.jsp" flush="true"></jsp: include></td>
<td> <jsp: include page="view.jsp" flush="true"></jsp: include></td>
</tr>
</table>
</body>
</html>
Why the include does not works? by the way, I embeded a flash.swf file in view.jsp.