81,092
社区成员
发帖
与我相关
我的任务
分享
<iframe src="" width="100%" height="100%" style="margin:0" name="main" id="main"/>
一个iframe,然后在left调用的时候设置a标签的target="main",就可以了你的jsp路径的问题,你的页面不是建在jsp下面的?这是告诉你找不到那个jsp了,让你检查····
你如果想知道的话,就在刚才那个下面, System.out.println(basePath); 你就知道路径是什么了·····
[quote=引用 17 楼 ImpluseG 的回复:]
[quote=引用 15 楼 podongxi777442156445 的回复:]
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
在html最上面,加一个这个··
[quote=引用 15 楼 podongxi777442156445 的回复:]在html最上面,加一个这个··<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
在html最上面,加一个这个··<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
…… 或许学学DIV+CSS布局比较好
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
在html最上面,加一个这个··→<%=basePath%>这个你可以删除····,这个是我当时写项目时候取的绝对地址吧,其实你可以不用的
<!DOCTYPE html >
<html >
<head>
<title></title>
<style type="text/css">
div{
padding:20px;
margin:0px;
}
.head{
height:60px;
width:100%;
text-align:center;
border-bottom:2px solid black;
}
.left{
width:9%;
min-height:1000px;
float:left;
border-right:2px solid black;
}
.right{
min-height:1000px;
float:left;
width:85%;
text-align:left;
}
</style>
</head>
<body>
<div class="head"><h1>title</h1></div>
<div class="left">
left
</div>
<div class="right">
right
</div>
</body>
</html>
或许学学DIV+CSS布局比较好