易截截图软件、单文件、免安装、纯绿色、仅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 ......

Ext+json+jsp构建的动态树

树节点组合模型
package cn.com.jsnh.model.catalog;
public class TreeModel {
private String node;
private CatalogModel model;
public String getNode() {
return node;
}
public void setNode(String node) {
this.node = node;
}
public CatalogModel getModel() {
return model;
}
public void setMo ......

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

JSP共有以下9种基本内置组件(可与ASP的6种内部组件相对应):
 1.request 用户端请求,此请求会包含来自GET/POST请求的参数。
   2. response 网页传回用户端的回应 。
   3.pageContext 网页的属性是在这里管理 。
   4.session 与请求有关的会话期。
   5.ap ......

jsp有哪些动作?作用分别是什么?

JSP共有以下6种基本动作:
   1.jsp:include:在页面被请求的时候引入一个文件。
   2.jsp:useBean:寻找或者实例化一个JavaBean。
   3.jsp:setProperty:设置JavaBean的属性。
   4.jsp:getProperty:输出某个JavaBean的属性。
   5.jsp:forward:把请求转到 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号