windows2003ÏÂJSPµÄÊý¾Ý¿âÁ¬½Ó
ÎÒµÄjsp±à³Ì»·¾³Ò²ÊÇ×î½ü²Å´î½¨ÆðÀ´µÄ£¬ÓõÄÊÇwindows2003£«ecplise£«tomcat£«lomboz£«sql Server 2000£¬´î½¨µÄ¹ý³ÌÖгÔÁ˲»ÉٵĿàÍ·£¬ÔڴµÄ¹ý³ÌÖÐ×ܽáÁËһЩ¾Ñ飬¶ÔÓÚjsp´î½¨ÔÚÍøÉÏÓв»ÉٵĽéÉÜ£¬´î½¨ÆðÀ´±È½ÏÈÝÒ×£¬ÏÂÃæÖ÷Òª½éÉÜÔÚjsp´î½¨ÆðÀ´ºóÁ¬½ÓÊý¾Ý¿âҪעÒâµÄµØ·½£º
£¨1£©Êý¾Ý¿âµÄ°æ±¾Ñ¡ÔñÒªÕýÈ·£¬Ñ¡ÔñµÄ°æ±¾ºÍ²Ù×÷ϵͳµÄ°æ±¾²¿ÊʺϵĻ°»á³öÏÖ1433¶Ë¿ÚÎÞ·¨´ò¿ªµÄÏÖÏó£¬ÎÒ²âÊÔÁËһϣ¬ÊʺÏwindows2003ϵͳµÄÊý¾Ý¿â°æ±¾ÊÇsql server2000¿ª·¢°æ¡£
£¨2£©Êý¾Ý¿âµÄ²¹¶¡Òª×¢Ò⣬ÓеIJÙ×÷ϵͳ»áÇ¿ÖÆÒªÇó¶Ôsql server2000´ò²¹¶¡µÄ£¬×¢ÒâÒ»¶¨Òª´ò¡£
£¨3£©Êý¾Ý¿âÇý¶¯³ÌÐò£¬ÎÒÏÂÔصİ汾ÊÇsp3£¬Õâ¸öÎÊÌâÓ¦¸Ã²»ÊǺܴó£¬ÒòΪÓвâÊÔ³ÌÐò£¬±È½ÏÈÝÒײé³öÎÊÌâ¡£
£¨4£©ÒÔÉÏ°²×°Íê±ÏÒԺ󣬲»Òª¼±×ÅÈ¥²áÊéÊý¾Ý¿âµÄÁ¬½Ó£¬Ê×ÏÈ°ÑÊý¾Ý¿âÔËÐÐÆðÀ´£»È»ºóÔÚdos´°¿Ú£¨¿ªÊ¼?>ÔËÐУ¬¼üÈëcmd»Ø³µ£©ÏÂÔËÐÐÃüÁnetstat -an£¬²é¿´1433¶Ë¿ÚÊÇ·ñ´ò¿ª£¬Èç¹û1433¶Ë¿ÚûÓдò¿ª¼ì²éÒÔÉϲ½Ö裬ÌرðÊÇ×¢ÒâÊý¾Ý¿âµÄ°æ±¾ÊÇ·ñºÍ²Ù×÷ϵͳÏàÅä¡£
£¨5£©1433¶Ë¿ÚÈç¹ûÒѾ´ò¿ª£¬¾ÍÔËÐÐÏÂÃæµÄÊý¾Ý¿âÁ¬½Ó²âÊÔÓÃÀý£º
£¨ÏÂÃæµÄ²âÊÔÓÃÀýÊDZðÈ˵ijɹû£©
package DataBase;
import java.sql.*;
public class MSDBdemo {
public static void main(String[] args) {
try{
Class.forName('com.microsoft.jdbc.sqlserver.SQLServerDriver').newInstance();
System.out.println('Êý¾Ý¿âÇý¶¯³ÌÐò×¢²á³É¹¦£¡');
String url =
'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=northwind';
String user = 'sa';
String password = '12345678';
Connection conn = DriverManager.getConnection(url, user, password);
System.out.println('Êý¾Ý¿âÁ¬½Ó³É¹¦');
}catch(Exception e){
e.printStackTrace();
System.out.println('Êý¾Ý¿âÁ¬½Óʧ°Ü');
}
}
}
ÔÚÔËÐвâÊÔÓÃÀýµÄʱºò£¬Èç¹ûÓÃecplise±à¼Æ÷Ò»¶¨Òª×¢Òâ°ÑÊý¾Ý¿âÇý¶¯ÖеÄlibÖеÄÈý¸öjarÎļþ¼ÓÈëµ½Óû§¹¹½¨Â·¾¶ÖУ»·½·¨ÊÇ£ºÔÚÒª±à¼µÄÏîÄ¿ÉÏÃæµãÓÒ¼üÑ¡ÊôÐÔ£¬Ñ¡Ôñjava¹¹½¨Â·¾¶£¬È»ºóÌí¼ÓÍⲿjar£¬°ÑÊý¾Ý¿âÇý¶¯ÖеÄlibÎļþ¼ÐÖеÄjarÎļþ¼Ó½øÈ¥£¬È»ºóÔËÐгÌÐò£¬Ò»°ã¾Í»á³É¹¦ÁË£¬»¹ÓÐÒ»µãҪעÒâµÄ¾ÍÊÇÊý¾Ý¿âµÄsaÓû§µÄÃÜÂ룬һ¶¨ÒªÕýÈ·¡£
Ïà¹ØÎĵµ£º
J2EE ̽Ë÷Õß:
´´½¨ºÍ¹ÜÀíÓÐ״̬ Web Ó¦ÓóÌÐò
¶Ô4ÖֻỰ×÷ÓÃÓòµÄÊʵ±´¦Àí
ÎĵµÑ¡Ïî
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
ÍØÕ¹ Tomcat Ó¦ÓÃ
......
1 ±ê¼Ç´¦Àí³ÌÐòÀà
´¦ÀíÀà¼Ì³ÐTagSupportÀಢÖØÔØdoStartTag()·½·¨,
Ôڸ÷½·¨ÖÐʹÓÃout.print();Êä³öÐèÒªµÄÊý¾Ýµ½Ê¹Óñ¾±êÇ©µÄjspÒ³Ãæ
package cn.xxx;
public class DateTag extends TagSupport {
private static final long serialVersionUID = 1L;
public int doStartTag() thr ......
ÏÈsunÌá³öµÄÊÇServletÌåϵ£¬Õâ¸öÌåϵʹµÃʹÓÃJAVAµÄ³ÌÐòÔ±Ò²ÄÜ¿ª·¢»ùÓÚB/S¼Ü¹¹µÄWEBÓ¦ÓóÌÐò£¬Ê¹ÓÃServletÀཫHTTPÇëÇóºÍÏìÓ¦·â×°ÔÚ±ê×¼JAVAÀàÖÐÀ´ÊµÏÖ¸÷ÖÖWEBÓ¦Ó÷½°¸¡£
Ëæ×Å´óÁ¿µÄB/S¼Ü¹¹³ÌÐò¿ª·¢³öÀ´ÒÔºó£¬ÈËÃÇ·¢ÏÖServletÀàµÄ±àдÊǷdz£·±ËöµÄ£¬Ö÷Òª¼¯ÖÐÔÚ¼¸¸öÎÊÌâÉÏ£ºÊ×ÏÈÓдóÁ¿ÈßÓà´úÂ룬ÕâЩ´úÂëÔÚÿ¸öservletÀàÖж ......
Ò»£¬jsp³öÏֵĵÄÔÒò
¿´Á½¶Î´úÂëµÄ¶Ô±È
1 servletʵÏÖ
public class Welcome extends HttpServlet {
int num = 1;
public void doGet(HttpServletRequest request,
&nbs ......
Excel±¨±íµÄ·½·¨£¬Ò»¸ö¹ý춼òµ¥£¬Ò»¸öÖ»ÄÜÓÃì¶windowƽ̨(ÒòΪʹÓÃjdbc-odbc bridge)£¬ÇÒÎÞ·¨Ê¹Óõ½ExcelÄÚ²¿µÄ¸÷ÖÖ¹«Ê½»òÊÇ·½·¨£¬Òò´Ë£¬½ñÌì½éÉÜÒ»¸öapache³öµÄÔª¼þ½ÐPOI£¬Ëü¿ÉÒÔÔÚUNIX»òwindowƽ̨´¦Àíword»òExcelµµ°¸£¬¶ø²»ÐèÒªÒÀ¿¿windowµÄcom£¬²¢ÇÒ¿ÉÉ趨´¢´æ¸ñ¸ñʽ¡¢ÁÐÓ¡¸ñʽµÈµÈ£»½ñÌìÎÒÀ´½éÉÜÆäÖÐÓйØ×ÊÁ϶ÁÈ¡¡¢ÐÂÔ ......