now learning java WEB development . Using struts2 + tomcat6 + mysql.
bottom is a page. Name student.jsp. There are nested one addstudent.jsp I used the red marked out.
This is a copy from the Internet . Not know , just know that is a nested inside the jsp jsp
I would now like to point out that in my jsp drop-down bar on the left side when the contents inside that jsp can change and outside the same.
do not know whether there are some simple ways . surf the Internet , but looks like he has said local brush-type problems like AJAX, I still do not want to immediately and add a
headache stuff
Oh . There is to know what kind of trouble . I'm sorry, so sorry multisection the ~ ~ ~
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link href="App_Themes/Normalle/main.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Normalle/StyleSheet.css" type="text/css" rel="stylesheet" /><title>
培训管理系统
</title><link href="Common/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
setInterval("back()",2000);
function test(html)
{
document.getElementById('Label2').innerHTML = html;
}
</script>
<script>
function close(){
if(document.body.clientWidth-event.clientX< 170&&event.clientY< 0 ||event.altKey) {
document.getElementById("Button1").click();
}
}
window.onbeforeunload=close;
</script>
<style type="text/css">
A:link,A:visited{ text-decoration:none; color:#ffffff; }
</style>
<script type="text/javascript" src="Common/xhttp.js"></script>
</head>
<body >
<div>
<table cellspacing="0" cellpadding="0" width="100%" border="0" background="images/top_02.gif">
<tbody>
<td align="left">
<img src="images/logo1.png"
style="width: 235px; height: 57px"/> </td>
<td width="47%" valign="top" align="right">
<table cellpadding="0" id="table18">
<tbody>
<tr>
<td align="right">
<table cellspacing="2" cellpadding="0" width="0%" border="0" id="table19">
<tbody>
<tr>
<td>
<img height="16" src="images/mail.gif" width="16"/></td>
<td valign="bottom" >
<a href="login.jsp">返回首页</a></td>
</tr>
</tbody>
</table>
</td>
<td class="gtsep" align="right">
|</td>
<td align="right">
<table cellspacing="2" cellpadding="0" width="0%" border="0" id="table20">
<tbody>
<tr>
<td>
<img height="16" src="images/write.gif" width="16"/></td>
<td valign="bottom" >
<a href="help/Default.aspx" target="_blank">使用帮助</a></td>
</tr>
</tbody>
</table>
</td>
<td class="gtsep" align="right">
|</td>
<td align="right">
<table cellspacing="2" cellpadding="0" width="90" border="0" id="table23">
<tbody>
<tr>
<td>
<img height="16" src="images/sys_out.gif" width="16"/></td>
<td valign="bottom">
<a href="login.jsp">退出系统</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table height="36px" style="color: white">
<tr>
<td valign="bottom">
今天是:
<script type="text/javascript">
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
if(navigator.appName == "Netscape")
{
document.write(1900+year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
}
if(navigator.appVersion.indexOf("MSIE") != -1)
{
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日 ");
}
if (todayDate.getDay() == 5) document.write("星期五")
if (todayDate.getDay() == 6) document.write("星期六")
if (todayDate.getDay() == 0) document.write("星期日")
if (todayDate.getDay() == 1) document.write("星期一")
if (todayDate.getDay() == 2) document.write("星期二")
if (todayDate.getDay() == 3) document.write("星期三")
if (todayDate.getDay() == 4) document.write("星期四")
</script>
</td>
</tr>
</table>
</tbody>
</table>
<table cellspacing="0" cellpadding="0" width="100%" border="0" background="images/top_02.gif">
<tbody>
<tr>
<td background="images/bg1.gif" style="height: 31px">
</td>
<td colspan="2" background="images/bg1.gif" style="height: 31px">
<table border="0" width="100%" id="table7">
<tr>
<td align="right">
您好:<span id="Label1">令狐冲 </span> 您的身份是:<span id="pgShengfeng">管理岗教师</span> 当前在线人数:
</td>
<td align="left">
<span id="Label2"></span>
</td>
</tr>
<tr height="5">
<td align="left" style="font-size: 1px;">
</td>
<td style="font-size: 1px;">
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td width="152" height="580" style="background-color: #f5f3f4;" valign="top">
<iframe src="tea1_MenuList.jsp" scrolling="no" frameborder="0" height="100%" width="100%">
</iframe>
</td>
<td valign="top" background="images/line.jpg" style="background-image: url(images/line.jpg);
font-size: 1px;" bgcolor="#f5f3f4" width="1%">
</td>
<td height="580px" rowspan="2" colspan="2" valign="top">
<iframe src="addStudent.jsp" scrolling="no"
frameborder="0" height="100%" width="100%"></iframe>
</td>
</tr>
</table>
</body>
</html>
------ Solution ------------------------------------- -------
------ Solution --- -----------------------------------------
will form the target and iframe the name is set to the same point the submit button or form.submit, you can refresh only the area of the iframe .
I'm still working , no environmental ah. .
------ For reference only -------------------------------------- -
red where it !
------ For reference only -------------------------------------- -
I'm depressed. . .
------ For reference only ---------------------------------- -----
------ For reference only --------------- What does it mean ------------------------
------ For reference only ---------------------------------- -----
addStudent.jsp increase in the head tag
Later in addStudent.jsp operate in whatever we do , will only refresh himself , without affecting the outside of the page.
------ For reference only -------------------------------------- -
I now submit in addstudent.jsp inside , then jump no problem.
I want to point out inside the JSP JSP then be changed
Is that right ?
------ For reference only ---------------------------------- -----
can you give me an example? Running my own and see .
Thank you
------ For reference only ---------------------------------- -----
good I would first try
late for me to get hold of examples Chouchou Caesar
Thank Kazakhstan
------ For reference only ---------------------------------- -----
dynamic includes , static include
Google, Baidu
found what
------ For reference only -------------------------------- -------
see it
------ For reference only ------------------------- --------------
I also want to see an example , you reach people , . Can you give an example Chouchou chant
没有评论:
发表评论