Java/JSP»ñµÃ¿Í»§¶ËÍø¿¨MACµØÖ·µÄÈýÖÖ·½·¨½âÎö
´ÓÍøÉϲéÕÒ×ÊÁÏjava/jsp»ñµÃ¿Í»§¶Ë(IE)Íø¿¨MACµØÖ·µÄ·½·¨´ó¸ÅÓÐÈýÖÖ¡£
1¡¢Í¨¹ýÃüÁʽ£¬ÔÚ¿Í»§¶ËÖ´ÐÐIpconfig µÈµÈ
2¡¢Í¨¹ýActiveXµÄ·½·¨
3¡¢Í¨¹ýÏò137µÄ¶Ë¿Ú·¢ËͲéѯָÁîµÄ·½·¨
¼ò½é£º
µÚÒ»ÖÖ·½·¨,ÔÚÕæÕýÓõ½Ê±ºò²»ÖªµÀΪʲô»ñµÃmacµØÖ·µÄÖ¸Áî×èÈûÁË,²»ÍùϼÌÐøÖ´ÐС£¶øÇÒËÙ¶ÈÊÇÕâÈýÖÖ·½·¨ÖÐ×îÂýµÄÒ»ÖÖ¡£
´úÂëÈçÏ£º
String sip="";
String smac="";
sip = request.getHeader("x-forwarded-for");
if(sip == null ||sip.length() == 0 || "unknown".equalsIgnoreCase(sip))
{
sip = request.getHeader("proxy-Client-IP");
}
if (sip == null || sip.length() == 0 || "unknown".equalsIgnoreCase(sip))
{
sip = request.getHeader("WL-Proxy-Client-IP");
}
if (sip == null ||sip.length() == 0 || "unknown".equalsIgnoreCase(sip))
{
sip = request.getRemoteAddr();
}
if(!"127.0.0.1".equals(sip)) //±¾»ú¹ýÂ˵ô
{
Process process = Runtime.getRuntime().exec("nbtstat -a " + sip);
InputStreamReader ir = new InputStreamReader(process.getInputStream());
LineNumberReader input = new LineNumberReader(ir);
String line;
while ((line = input.readLine()) != null)
if (line.indexOf("MAC Address") > 0)
{
smac = line.substring(line.indexOf("-") - 2);
}
µÚ¶þÖÖ·½·¨ÊÇÓÃActiveXÀ´»ñµÃ,ËٶȱȵÚÒ»ÖÖ·½·¨¿ìµ«ÊDZØÐë½µµÍ°²È«ÉèÖ÷ñÔò½Å±¾²»±»Ö´ÐÐ
IEÉèÖÃÈçÏÂ
1.´ò¿ªIEä¯ÀÀÆ÷
2.¹¤¾ß->InternetÑ¡Ïî->°²È«
3.×Ô¶¨Ò弶±ð(C)...
4.ÉèÖÃÖжÔδ±ê¼ÇΪ¿É°²È«Ö´Ðнű¾µÄActiveX¿Ø¼þ³õʼ»¯²¢Ö´Ðнű¾
Ñ¡ÖÐÆô¶¯(²»°²È«)->ÿ´Î²»Óõã»÷"ÊÇ"°´Å¥£¬ÍƼö£¬µ±È»ÄãµÄ»úÆ÷²»ÄÜÉÏ»¥ÁªÍø·ñÔò»áÓа²È«ÎÊÌâ¡£
Ñ¡ÖÐÌáʾ->ÿ´Î¶¼µÃµã»÷"ÊÇ"°´Å¥¡£
5.µã»÷"È·¶¨"->"È·¶¨"°´Å¥
6.ÖØÐÂÆô¶¯IEä¯ÀÀÆ÷ÉèÖÃÉúЧ
´úÂë
<SCRIPT language=JScript event="OnCompleted(hResult,pErrorObject, pAsyncContext)"
Ïà¹ØÎĵµ£º
JavaÁ¬½ÓÊý¾Ý¿âµÄ·½·¨
×¢£º×ªÓÚhttp://www.newasp.net/tech/java/15826.html
JAVAÁ¬½ÓÊý¾Ý¿âÖ÷ÒªÓÐÁ½ÖÖ·½Ê½:
Ò»ÊÇÓÃJDBC-ODBCÇÅÀ´Á¬½Ó
¶þÊÇÓÃÏà¹Ø³§ÉÌÌṩµÄÏàÓ¦Çý¶¯³ÌÐòÀ´Á¬½Ó
ÓÃJDBC-ODBCÇÅÀ´Á¬½Ó
JDBC-ODBCÇŽÓÆ÷ÊÇÓÃJdbcOdbc.ClassºÍÒ»¸öÓÃÓÚ·ÃÎÊODBCÇý¶¯³ÌÐòµÄ±¾µØ¿âʵÏֵġ£¶ÔÓÚWINDOWSƽ̨£¬¸Ã±¾µØ¿âÊÇÒ»¸ö¶¯ ......
Ò»£º×¼±¸ www.savarese.org download
1. rocksaw-1.0.0-src.tar.gz
2. vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
1. build vserv-tcpip-0.9.2-src
ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......
µÝ¹éº¯ÊýÖ®JAVAÑÝÒï
µÝ¹éº¯ÊýÖ®JAVAÑÝÒï
1¡¢µÝ¹éº¯ÊýµÄ¶¨Ò壺
´ð£ºµÝ¹éº¯Êý¼´×Ôµ÷Óú¯Êý£¬ÔÚº¯ÊýÌåÄÚÖ±½Ó»ò¼ä½ÓµÄµ÷ÓÃ×Ô¼º£¬¼´º¯ÊýµÄǶÌ×ÊǺ¯Êý±¾Éí¡£
2¡¢µÝ¹é·½Ê½£ºµÝ¹éµ÷ÓÃÓÐÖ±½ÓµÝ¹éºÍ¼ä½ÓµÝ¹éÁ½ÖÖ·½Ê½¡£
A£ºÖ±½ÓµÝ¹é£ºÔÚº¯ÊýÖгöÏÖµ÷Óú¯Êý±¾Éí¡£
ʾÀý1£ºÏÂÃæ´úÂëÇóì³²¨ÄÇÆõÊýÁеÚnÏ쳲¨ÄÇÆõÊýÁеÚÒ»ºÍµÚ¶þÏ ......
Ò»¡¢Java»ù´¡ÖªÊ¶
1.JavaÓÐÄÇЩ»ù±¾Êý¾ÝÀàÐÍ£¬StringÊDz»ÊÇ»ù±¾Êý¾ÝÀàÐÍ£¬ËûÃÇÓкÎÇø±ð¡£
2.×Ö·û´®µÄ²Ù×÷£º
дһ¸ö·½·¨£¬ÊµÏÖ×Ö·û´®µÄ·´×ª£¬È磺ÊäÈëabc£¬Êä³öcba
дһ¸ö·½·¨£¬ÊµÏÖ×Ö·û´®µÄÌæ»»£¬È磺ÊäÈëbbbwlirbbb£¬Êä³öbbbhhtccc¡£
3.Êý¾ÝÀàÐÍÖ®¼äµÄת»»
ÈçºÎ½«ÊýֵР......
JavaÖеĶÔÏó³Øģʽ
Java¶ÔÏóµÄÉúÃüÖÜÆÚ·ÖÎö£º
Java¶ÔÏóµÄÉúÃüÖÜÆÚ´óÖ°üÀ¨Èý¸ö½×¶Î£º
¶ÔÏóµÄ´´½¨£¬¶ÔÏóµÄʹÓ㬠¶ÔÏóµÄÇå³ý¡£ Òò´Ë£¬¶ÔÏóµÄÉúÃüÖÜÆÚ³¤¶È¿ÉÓÃÈçϵıí´ïʽ±íʾ£º T = T1 + T2 + T3.ÆäÖÐT1±íʾ¶ÔÏóµÄ´´½¨Ê±¼ä£¬T2±íʾ¶ÔÏóµÄʹÓÃʱ¼ä£¬¶øT3Ôò±íʾ¶ÔÏóµÄÇå³ýʱ¼ä¡£ÓÉ´Ë£¬ÎÒÃÇ¿ÉÒÔ¿´³ö£¬Ö»ÓÐT2ÊÇÕæÕýÓÐЧµÄʱ ......