必须要用JSP的标签来实现吗,用iframe不行吗
JSP代码的嵌套我就不知道该怎么解决了
给你一个比较锉的方法
<%!
String p = "a";
%>
<%if(p.equals("a")){%>
<%@ include file= "index.jsp"%>
<%}else if(p.equals("b")){%>
<%@ include file= "error.jsp"%>
<%}%>
不知道能不能满足你的要求
JSP代码的嵌套我就不知道该怎么解决了
给你一个比较锉的方法
<%!
String p = "a";
%>
<%if(p.equals("a")){%>
<%@ include file= "index.jsp"%>
<%}else if(p.equals("b")){%>
<%@ include file= "error.jsp"%>
<%}%>
不知道能不能满足你的要求
不过楼上方法还不如再加一个中间页面呢!
中间页面跳到不同的jsp去a.jsp:<%
String filename="test1.jsp";
reponse.sendDrict(filename);
%>
test1.jsp:<%@ include file= "test1add.jsp"%>
test2.jsp:<%@ include file= "test2add.jsp"%>
....