Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ºÍ javaµÄÖ÷ÒªÇø±ðÊÇʲô?

javascriptдjavaû¹Øϵ,ÖÁÓÚΪʲôÃû×ÖÕâôÏà½ü,¿ÉÄÜÊÇÒòΪjavaºÜÓÐÃûÆøËùÒÔ°ÑÃû×ÖÈ¡³É²î²»¶àµÄ,Ò»ÖÖÐÂÓïÑÔ¸Õ³öÀ´µÄʱºòÒªµãÃûÆøÀ´³öÃû°É~~
javascriptËãÊÇÒ»ÖÖhtml½Å±¾ÄÜÖ±½ÓÖ´ÐеÄÓïÑÔ°É,jspÒª±àÒë²ÅÄÜÖ´ÐÐ,Äã×Ô¼ºÐ´¸öJSP²»¿ªtomcatÖ®ÀàµÄÊÇÎÞ·¨Ö´ÐеÄ.JSPºÍJAVAµÄÇø±ð,JSPËãÊÇJAVAÒ»ÖÖ¼¼Êõ°É,ÓÃÔÚÍøÒ³±à³ÌÉÏ,ÒòΪJAVA² ......

JSPʵÏÖÎļþÉÏ´«

ʹÓÃRandomAccessFileÀàÌṩµÄ¹¦ÄÜÀ´ÊµÏÖÎļþÉÏ´«¡£µ±ÎÒÃÇÏë¶ÔÒ»¸öÎļþ½øÐжÁд²Ù×÷ʱ£¬¿ÉÒÔ´´½¨Ò»¸öÖ¸Ïò¸ÃÎļþµÄRandomAccessFileÁ÷¼´¿É£¬ÕâÑù¼È¿ÉÒÔ´ÓÕâ¸öÁ÷ÖжÁÈ¡Õâ¸öÎļþµÄÊý¾Ý£¬Ò²Í¨¹ýÕâ¸öÁ÷дÈëÊý¾Ý¸øÕâ¸öÎļþ¡£
ÀûÓÃJavaBean¸ºÔð½«Óû§Ñ¡ÔñµÄÎļþÉÏ´«µ½·þÎñÆ÷¡£bean¿ÉÒÔÈÃÄÚÖöÔÏórequestµ÷Ó÷½·¨getInputStream£ ......

²»ÄܱàÒëjspÔõô°ì

Ò²ÐíºÜ¶à¸ßÊÖ¶¼²»Ï÷½â¾öÕâ¸öÎÊÌ⣬µ«ÊÇÎÒ¾õµÃ¶Ô³õѧÕßÀ´ËµÕâ¸öÎÊÌ⻹ÊÇÒªÑо¿Ò»»áµÄ£¬ËùÒԾͼǼÏÂÀ´ÁË¡£
ÎÊÌâÃèÊö£º
µ±ÄãÔÚEclipseµÄ³ÌÐòÖмÓÈëÒ»¸öJSPÎļþºó£¬Õû¸öProject »á±¨Ò»¸öÕâÑùµÄError.
ÎÊÌâÔ­Òò£º
ĬÈÏEclipseµÄ±àÒë»·¾³ÊÇJRE£¬¶øJREÊDz»´ø±àÒëÆ÷µÄ£¬Ö»ÓÐJDK²Å´ø±àÒëÆ÷¡£ËùÒÔ±ØÐë°ÑJDK×÷ΪÄãÏîÄ¿µÄInstalle ......

JSPÇáËÉÈëÃÅ

»ù±¾ÄÚÈÝ
Ê×ÏÈÊÇÓÃJ2SE+TOMCAT´î½¨¿ª·¢Æ½Ì¨£¬È»ºó»áÓÃʵÀý·Ö±ð¶ÔjavabeanºÍservlet½øÐвâÊÔ£¬
ͬʱҲ»á̸µ½Ò»Ð©ÖÐÎÄ´¦ÀíÉϵÄÎÊÌâ¡£ÎÄÕÂÄÚÈÝ¿ÉÄÜ»áÓеãÔÓÂÒºÍÁãÉ¢£¬µ«ÕâÒ²ÊÇѧϰ
jsp×î»ù´¡µÄ֪ʶ£¬ÒªÏëѧºÃjsp»¹µÃ¿¿×Ô¼º¶àŬÁ¦Ñ§Ï°¡£

ΪʲôҪдÕâÑùһƪÎÄÕ£¿
ÈÏʶÎÒµÄÅóÓÑ¿ÉÄÜ»áÖªµÀ£¬ÎÒƽʱֻÊÇдºÍ·­ÒëһЩJ2ME· ......

javabeanÏò´«jsp´«Öµ

struts-config:
<action path="/articleManage" name="articleManageForm"  scope="request" type="auction.action.ArticleManageAction" validate="false">
   <forward name="atriclesList" path="/WEB-INF/publish/articleManage/atriclesList.jsp"/>
   <forward ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ