当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: //articleconn.jsp 数据库连
 

 

    摘要: //edit.jsp,通过manage.jsp链接过来的修改信息页面<%@ include file="articleconn.jsp"%><%string id1=request.getparameter("id").trim();session.setattribute("id", id1);in......
    摘要: 格式化输入日期时间控件可以用jieformatteddatebox box = new jieformatteddatebox("yyyy年mm月dd日hh点mm分ss秒");输入也可以用jieformatteddatebox box = new jieformatteddatebox("hh:mm:ss");来输入时间还可以这样用jsp......


Oracle&amp;JSP开发的小型信息管理系统(三)源代码2

<%@ page contenttype="text/html;charset=big5"%><%@ page import="java.sql.*"%> 【程序编程相关:在C#中用户控件与窗体间的消息传递

//articleconn.jsp 数据库连接文件,几乎被每个页面包含,有的页面去掉获得session,修改一下这个代码,很简单 【推荐阅读:小程序:LRC歌词展开

//************************************manage.jsp管理页面,提供分页,修改,删除,添加的链接 【扩展信息:使用C#与NNTP服务器交互!

  <%       request.setcharacterencoding("big5");  connection conn=null;  statement stmt=null;  try{  class.forname("oracle.jdbc.driver.oracledriver").newinstance();  string url="jdbc:oracle:thin:@192.168.56.199:1521:asdb";  string user="system";  string password="oracle01";  conn=drivermanager.getconnection(url, user, password);  }  catch(exception e1){  e1.printstacktrace();}    %>

<%/*cookie cookies[]=request.getcookies();if(cookies==null){ response.sendredirect("login.jsp"); }string username=(string)session.getattribute("admin");out.println("welcome, "+username);if(username==null){response.sendredirect("login.jsp");}*/%><%@ include file="articleconn.jsp"%><html>

<head><meta http-equiv="content-type" content="text/html; charset=big5"><title>管理文件</title><meta name="generator" content="microsoft frontpage 4.0"><link rel="stylesheet" href="css/style.css"></head>

<%request.setcharacterencoding("big5");s
...   下一页
    摘要: //index.jsp 改进了的实现分类查询的默认页面<%@ page contenttype="text/html;charset=big5"%> <%@ include file="articleconn1.jsp"%><%string types=request.getparameter("t......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE