Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ×éºÏMyEclipse£«MySQL£«Tomcat¿ª·¢»·¾³

Ò»¡¢°²×°JDK ¡¡¡¡Ê×ÏÈÏÂÔØJDK 5.0£¨JDK 5.0µÄÏÂÔØÒ³ÃæΪ£ºhttp://java.sun.com/j2se/1.5.0/download.jsp£©£» È»ºóÔËÐÐJDK 5.0°²×°³ÌÐòjdk-1_5_0_06-windows-i586-p.exe£¬°²×°¹ý³ÌÖÐËùÓÐÑ¡Ïî±£³ÖĬÈÏ£»×îºóÅäÖÃJDKµÄ»·¾³±äÁ¿£ºÔÚ“ÎҵĵçÄÔ”ÉϵãÓÒ¼ü—>“ÊôÐÔ”—>“¸ß¼¶”& ......

jspºÍservletÖض¨Ïò

Ò»¡¢        
         ÔÚÒ»¸öÉè¼ÆÁ¼ºÃµÄWebÓ¦ÓÃÖУ¬¶¼»á×ÛºÏʹÓÃServletºÍJSP¼¼Êõ¡£Servlet¿ØÖÆÒµÎñÁ÷ת£¬JSPÔò¸ºÔðÒµÎñ´¦Àí½á¹ûµÄÏÔʾ¡£´Ëʱ£¬½«´óÁ¿Óõ½Öض¨Ïò¼¼Êõ¡£
¡¡¡¡Öض¨Ïò¼¼Êõ¿ÉÒÔ·ÖΪÁ½À࣬һÀàÊÇ¿Í»§¶ËÖض¨Ïò£¬Ò»ÀàÊ ......

ÔÚJSPÖÐʹÓÃJS·½Ê½ÒýÓÃckeditor

×î½üÔÚ×Ô¼º×öµÄÏîÄ¿ÖÐÐèÒªÓõ½ÔÚÏ߱༭Æ÷,ÔÚÍøÉÏËÑÁËÏ£¬·¢ÏÖÁËckeditor£¬µ±È»ÍøÉÏÓкü¸ÖÖÔÚÏ߱༭Æ÷£¬²»ÖªµÀΪʲôѡÔñÁËckeditor,±¾À´´òËãÓÃFckeditorµÄ£¬µ«ÊÇ¿´µ½ÍøÉÏ»¹ÐèÒªµ¼ÈëºÃ¼¸¸öJAR°ü£¬»¹Òª½øÐÐÒ»¶ÑÅäÖã¬ÓеãÂé·³£¬±¾À´ÏîÄ¿ÖÐÒ²¾ÍÓÃһϣ¬»¹ÒªÄÇôÂé·³µØÈ¥ÅäÖá£
ÓÚÊÇÈ¥ckeditorÍøÕ¾ÏÂÔØÁË×îа汾µÄckeditor£¬ ......

jspÓÐÄÄЩ¶¯×÷?×÷Ó÷ֱðÊÇʲô?

JSP¹²ÓÐÒÔÏÂ6ÖÖ»ù±¾¶¯×÷£º
   1.jsp:include£ºÔÚÒ³Ãæ±»ÇëÇóµÄʱºòÒýÈëÒ»¸öÎļþ¡£
   2.jsp:useBean£ºÑ°ÕÒ»òÕßʵÀý»¯Ò»¸öJavaBean¡£
   3.jsp:setProperty£ºÉèÖÃJavaBeanµÄÊôÐÔ¡£
   4.jsp:getProperty£ºÊä³öij¸öJavaBeanµÄÊôÐÔ¡£
   5.jsp:forward£º°ÑÇëÇóתµ½ ......

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ºÅ