´«ÖDz¥¿ÍjavaÅàѵ java»ù´¡Ö®JSPÒì³£´¦Àí
Ñ×ÈȵÄÌìÆøÒÀ¾É³ÖÐø£¬ÆþÖ¸ËãÀ´£¬µ½±±¾©¸ÕºÃÁ½ÔÂÁË£¬Ã¿Ì춼ͶÈëµ½³äʵµÄѧϰÖУ¬
¸Ð¾õÁ¼ºÃ£¬²»¹ý×òÌìÉϿξ¹È»Ë¯¾õ£¬¶øÇÒÍíÉÏ»¹¿´Á˵çÓ°¡£¡£¡£¡£¡£Òª±£³Ö¾¯Ì裬·ÅËÉ
µ«ÊDz»ÄÜÌ«·ÅËÉ£¡£¡£¡£¡
ÅàѵµÄʱ¼ä±Ï¾¹ºÜ¶Ì£¬´í¹ýÁËÕ⼸¸öÔ£¬ÒÔºó¹À¼Æ¾ÍºÜÉÙÄܾ²ÏÂÐÄÀ´Ñ§Ï°ÁË£¬ÒªÕäϧ£¬
ҪŬÁ¦£¬GOGO!!
JSPÒì³£´¦Àí·½Ê½£º
µÚÒ»ÖÖ£ºÔÚ³öÏÖÒì³£µÄjspÎļþÄÚÔö¼ÓÖ¸Áî
<%@ page errorPage="/exception/error.jsp" %>
¸Ã·¾¶Ö¸ÏòµÄÊÇ´¦ÀíÒì³£µÄÒ³Ãæ¡¢ÊôÓÚת·¢£¬µØÖ·À¸ÖеÄ·¾¶
²»»á·¢Éú±ä»¯
¿ÉÒÔÔÙerror.jspÒ³ÃæÄÚ£¬Ìí¼ÓÖ¸Áî<%@ page isErrorPage="true"%>
È»ºóÓýű¾±í´ïʽ£º<%=exception.getMessage() %>
ÕâÑù¾Í¿ÉÒÔÔÙÒì³£Ò³ÃæÏÖʵÒì³£ÄÚÈÝÁË£¬Èç¹ûÊÇÓÃIEä¯ÀÀÆ÷ÑÝʾ£¬ÄÇô
ÒªÔÙInternetÑ¡Ïî--¸ß¼¶ Ï£¬È¥µô ÏÔʾÓѺÃHTTP´íÎóÐÅÏ¢£¬²ÅÄÜ¿´µ½×Ô¼º
µÃµ½µÄÒì³£ÐÅÏ¢
µÚ¶þÖÖ£ºÔÙÓпÉÄܳöÏÖÒì³£µÄÒ³ÃæÄÚ²»×öÈκÎÐ޸ģ¬¶øÊÇÔÙweb.xmlÖÐÌí¼Ó±êÇ©
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/WEB-INF/error.jsp</location>
</error-page>
ͬÑùÒ²¿ÉÒÔÄõ½ÐÅÏ¢
µÚÈýÖÖ£ºÔÙ³öÏÖÒì³£ºó£¬±¾À´Òª±¨404´úÂë¿éµÄÒì³££¬×÷³öÈçÏÂÅäÖúó£¬Ôò»á³öÏÖ´¦ÀíÒì³£Ò³Ãæ
µÄÄÚÈÝ£¬ÐèҪǿµ÷µÄÊǺ͵ڶþÖÖ·½·¨²»Òª»ìÏýÁË£¡£¡£¡
ÔÙ´¦ÀíÒì³£Ò³Ã治Ҫд <%=exception.getMessage() %>£¬ÒòΪ¸ù±¾Ã»ÓÐÒì³££»¸Ã·½·¨ÊÊÓÃ
ÓÚ404´úÂë¿é ÒÔ¼° 500´úÂë¿é
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/error.jsp</location>
</error-page>
ÒÔÉÏÈýÖÖ·½·¨Ö»Êʺϴ¦ÀíСÐÍÎļþµÄÒì³££¡
JSPÄÚÖöÔÏó£º
request:
<%
String path=request.getContextPath();
%>
<a href="<%--=path --%>./inde.jsp">²âÊÔ</a>
ÔÙrequest.jspÖУ¬“./inde.jsp” “/inde.jsp” “inde.jsp”
Ïà¹ØÎĵµ£º
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
/**
* @author dengshaohua
*/
public class ReadPhone {
/**
* ¶ÁÈ¡Êý¾Ý
*/
public void ReadData(){
try {
FileReader read = new File ......
±¾ÎÄ´Óhttp://www.blogjava.net/breezedancer/archive/2007/07/19/131264.htmlתÔØ
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
//¶ÏµãÐø´ ......
ÓÃspyºÍmemcached for javaÁ½ÖÖ·½Ê½¶Ômemcache½øÐвÙ×÷
Ò»¡¢spy
package com.test.memcache;
import java.net.InetSocketAddress;
import java.util.concurrent.Future;
import net.spy.memcached.MemcachedClient;
/**
* ±¾ÀàÓõİüÊÇmemcached-2.4.1.jar
* ÏÂÔصØÖ·£º http://code.googl ......