JSP写文件代码
<%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*" %>
<!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>
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link href="css/common_1.css" rel="stylesheet" type="text/css" />
<link rel="SHORTCUT ICON" href="../favicon.ico" />
<style type="text/css">
<!--
.STYLE2 {font-size: 12px}
-->
</style>
</head>
<body>
<%
String path_in = "";
String content = "";
path_in = request.getRealPath("/")+"admin"+File.separator+"manage_customer_details_edit.jsp";
try
{
PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter
(path_in)));
writer.println(
"<%"
+"@ page contentType=\"text/html; charset=gbk\" language=\"java\" import=\"java.sql.*\" errorPage=\"\" %"
+">");
writer.println("<%"+"@ page import=\"cn.com.cxweb.pc.db.databean\" %"+">");
writer.println("<%"+"@include file=\"const.jsp\"%"+">");
相关文档:
JAVA/JSP类毕业设计
若有合适您的设计,请告诉我详细说明的网址!谢谢合作!
编号 题目 开发工具 内容 资料费 详细说明
001JVSQL 办公自动化系统 JAVA JAVA源代码+毕业论文+开题报告+答辩稿 ¥180 详细说明
002JVAC 学生信息管理系统 JAVA JAVA源代码+毕业论文+开题报告+答辩稿 ¥180 详细说明
004JVAC 图书馆管理 ......
1,DateTime类型数字
以下是引用片段:
当前时间System.DateTime的=新System.DateTime的();
1.1小时分钟当前日期秒,当前时间= System.DateTime.Now;
1.2检查本年度廉政年= currentTime.Year;
1.3当前月份廉政个月= currentTime.Month;
1,4采取当天廉政天= currentTime.Day;&n ......
<script language="javascript">
var times=6;
clock();
function clock()
{
window.setTimeout('clock()',1000);
times=times-1;
time.innerHTML =times;
}
</script>
<head>
<meta http-equiv= "Refresh" content= "5;url=index.jsp "& ......
运行自己配置的web应用,往往只能看见weblogic编译之后的class文件。而看不见编译前的java的文件。为了调试方便,我们有时候是想看编译前的java文件。
在weblogic.xml中加入
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</par ......
<%@ page contentType="text/html; charset=gbk" language="java" import="java.io.*" buffer="64kb" %>
<%
String path_in = "";
String content = "";
path_in = request.getRealPath("/")+"admin"+File.separator+ ......