易截截图软件、单文件、免安装、纯绿色、仅160KB

jsp读取foxpro的dbf文件

<%@page contentType="text/html"%>
<%@page pageEncoding="GBK"%>
<%@page import="java.sql.*;" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GBK">
        <title>JSP+DBF</title>
    </head>
    <body>
        <h2 align="center">JSP连接DBF</h2><hr>
        <%!
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
        %>
        <%
        String path = "";
        request.setCharacterEncoding("GBK");
        path = request.getRealPath("").replace('\\', '/');
        out.println(path);    /**/
        int i = 1;
        String url = "jdbc:odbc:driver={Microsoft Visual FoxPro Driver};" +
                "SourceType=DBF;SourceDB=" + path + "/";
        con = DriverManager.getConnection(url);
        String Showsql = "select * from inform";
        st = con.createStatement();
        rs = st.executeQuery(Showsql);
        while (rs.next()) {
            String str = i +


相关文档:

JSP文件

<%@ page language="java" import="kg.TestBean2;" %>
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>HelloBean</title>
</head>
<body>
<%--
<%
kg.TestBean2 testbean=(kg.TestBean2)session.setAttribute("testbean");
if ......

JSP架构、JSP开发工具优缺点比较

   随着技术的日新月异 ,JSP的新技术也层出不穷,为了方面大家的学习与工作,下面将简单的介绍一下JSP架构、JSP开发工具、Web服务器及其铖缺点。
    JSP架构:
    struts:  Struts跟Tomcat、Turbine等诸多Apache项目一样,是开源软件,这是它的一大优点,使开发者能更� ......

Java/JSP连接Postgre数据库常见问题解答

一、
问:org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.254.103", user "postgres",database "postgres", SSL off
答:PostgreSQ数据库为了安全,它不会监听除本地以外的所有连接请求,当用户通过JDBC访问是,就会报一些以上的异常。要解决这个问题 ......

jsp和servlet重定向

一、        
         在一个设计良好的Web应用中,都会综合使用Servlet和JSP技术。Servlet控制业务流转,JSP则负责业务处理结果的显示。此时,将大量用到重定向技术。
  重定向技术可以分为两类,一类是客户端重定向,一类� ......

jsp有哪些内置对象?作用分别是什么?

JSP共有以下9种基本内置组件(可与ASP的6种内部组件相对应):
 1.request 用户端请求,此请求会包含来自GET/POST请求的参数。
   2. response 网页传回用户端的回应 。
   3.pageContext 网页的属性是在这里管理 。
   4.session 与请求有关的会话期。
   5.ap ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号