Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÀûÓÃJavaÉú³É¾²Ì¬HMTLÒ³ÃæµÄ·½·¨ÊÕ¼¯

2009Äê08ÔÂ12ÈÕ ÐÇÆÚÈý 10:31 A.M.
Éú³É¾²Ì¬Ò³Ãæ¼¼Êõ½â¾ö·½°¸Ö®Ò»
תÔØÕßÇ°ÑÔ£ºÕâÊÇÒ»¸öÈ«ÃæµÄjsp¶¯Ì¬Ò³Ã澲̬»¯·½°¸£¬±¾Õ¾µÄÌû×Ó¾²Ì¬»¯·½°¸½«½è¼øÕâƪÌû×ÓÖз½·¨¡£Ïòhttp://www.agilejava.orgµÄsingleµÄ¹²Ïí¾«ÉñÖ¾´¡£
תÌûÕýÎÄ£º
       ÏàÐźܶàÈ˶¼Ï£Íû×Ô¼ºµÄÒ³ÃæÔ½¿ìÔ½ºÃ£¬×îºÃÊÇÄܾ²Ì¬µÄ£¬Ìá¸ß¿Í»§·ÃÎÊËٶȡ£Ò²±ãÓÚËÑË÷ÒýÇæËÑË÷¡£ËùÒÔ£¬¾ÍÏ£ÍûÎÒÃǵĶ¯Ì¬¶ÁÈ¡Êý¾Ý¿âµÄÒ³Ã棬¾¡¿ÉÄܵÄÉú³É¾²Ì¬Ò³Ãæ¡£Ò»ÏÂϵÁÐÎÄÕ£¬½éÉÜһϸöÈ˵Ľâ¾ö·½°¸¡£
      ±¾ÏµÁн«½éÉܸöÈ˵ÄÒ»ÖÖ·½·¨£¬ÔÚ²»¸Ä±äÔ­À´jspÎļþµÄ»ù´¡ÉÏ£¬Ö»ÐèÒª¼ÓÈëÉÙÁ¿µÄ´úÂ룬¾ÍÈÃÄãµÄÐÂÎÅ·¢²¼ÏµÍ³£¬ºÜÈÝÒ×¾ÍÍêÈ«±ä³É¾²Ì¬µÄÒ³Ãæ¡£
            ±¾ÎļÙÉèÄãÊÇÓÃjava¿ª·¢µÄweb¶¯Ì¬Ò³Ãæ¡£
           µÚÒ»²½£¬¼ÓÈëservlet.´úÂëÈçÏ¡£
      public class ToHtml extends HttpServlet {
       public void service(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
        String url = "";
        String name = "";
        ServletContext sc = getServletContext();
        String file_name = request.getParameter("file_name");// ÄãÒª·ÃÎʵÄjspÎļþÃû,Èçindex£¬²»°üÀ¨À©Õ¹Ãû
        // ÔòÄã·ÃÎÊÕâ¸öservletʱ¼Ó²ÎÊý.Èçhttp://localhost/test/toHtml?file_name=index
        url = "/" + file_name + ".jsf";// ÄãÒªÉú³ÉµÄÒ³ÃæµÄÎļþÃû¡£ÎÒµÄÀ©Õ¹ÃûΪjsf .
        name = ConfConstants.CONTEXT_PATH+"\\"+ file_name + ".htm";// ÕâÊÇÉú³ÉµÄhtmlÎļþÃû,Èçindex.htm.ÎļþÃû×ÖÓëÔ´ÎļþÃûÏàͬ¡£À©Õ¹ÃûΪhtm
      //ConfConstants.CONTEXT_PATHΪÄãµÄÓ¦ÓõÄÉÏÏÂÎÄ·¾¶¡£
       


Ïà¹ØÎĵµ£º

JavaÉè¼Æģʽ֮:IteratorÁ´±íģʽ

ÏÈÀ´Á˽âÒ»ÏÂÁ´±íģʽµÄÔ­Àí£º
Ê×ÏÈдһ¸öJavaBean£¬ÄÚÈÝÊÇÒªÌí¼ÓµÄÔªËغ͸ÃÔªËصĽڵ㡣
public class NodeBean implements Serializable
{
   
    private Object data; //ÔªËر¾Éí
    private NodeBean next; //ÏÂÒ»¸ö½Úµã
   
  &n ......

ÈçºÎ³ÉΪһÃûºÏ¸ñµÄJava³ÌÐòÔ±

1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºò IDE µÄ±à¼­Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
   2¡¢ÃüÁ±ØÐëÊìϤ JDK ´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢HtmlConverter¡¢jar¡¢java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢native2ascii¡¢serialve ......

xsltµ÷ÓÃjava·½·¨

ÔÚstylesheet±êÇ©ÀïÉùÃ÷ÃüÃû¿Õ¼äºÍµ÷Ó÷½·¨£º
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:proc="${path}/packageName" exclude-result-prefixes="proc">
......
<xsl:value-of select="proc:className.methodName(param)"/>
${path}Ëæ±ãÔõÑùд¶¼¿ÉÒÔ£¬¼´Ê¹ÊǸ ......

java ÕýÔò±í´ïʽ

Òý£ºAndroid µÄAPIÖÐÓиö java.util.regex °ü£¬ÆäÖÐÓÐÁ½¸öÀ࣬һ¸ö½Ó¿ÚºÍÒ»¸öÒì³££º
Interfaces
MatchResult
Holds the results of a successful match of a Pattern against a given string.
Classes
Matcher
Provides a means of matching regular expressions against a given input,
finding occurrences of ......

ÉîÈë̽Ë÷Java¶ÔÏóµÄÐòÁл¯

    ¶ÔÏóÐòÁл¯¾ÍÊǰѶÔÏóдÈëµ½Êä³öÁ÷ÖУ¬ÓÃÀ´´æ´¢»òÕß´«Êä¡£
    ¶ÔÏóµÄ·´ÐòÁл¯¾ÍÊÇ´ÓÊäÈëÁ÷ÖжÁÈ¡¶ÔÏó¡£
    ÒªÐòÁл¯µÄ¶ÔÏóÓ¦¸ÃʵÏÖSerializable½Ó¿Ú¡£
    Serializable½Ó¿ÚÊÇÒ»¸ö±êʶ½Ó¿Ú£¬Ã»ÓгéÏó·½·¨¡£
    SerializableÓÐÒ»¸ö× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ