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

JavaµÄÓ¦ÓÃÓëStrutsµÄ³õ²½Á˽â

Õⲿ·ÖµÄÖ÷ÒªÄÚÈÝ£º
µÚÒ»£¬Java WebÓ¦Óûù´¡¸´Ï°
µÚ¶þ£¬MVCµÄÉè¼ÆÄ£Ê½
µÚÈý£¬StrutsµÄÉè¼ÆÄ£Ê½
µÚÒ»²¿·Ö£ºJava WebµÄÓ¦Óûù´¡
Java WebµÄºËÐļ¼ÊõÊÇJSPºÍServlet¼¼Êõ¡£
ͼһ£¬Java WebµÄÓ¦ÓõĽṹͼ
1£¬ServletÓëJSP
Servlet×é¼þÊÇÒ»¸öÓëЭÒéÎÞ¹ØµÄ¿çÆ½Ì¨µÄ·þÎñÆ÷×é¼þ¡£ServletµÄ×÷ÓÃÊǶÁÈ¡¿Í»§·¢Ë͵ÄÏÔʾΪÊý¾Ý¡¢¶ÁÈ¡ÓÉä¯ÀÀÆ÷·¢Ë͵ÄÒþ²ØÊ½ÇëÇóÊý¾Ý¡¢Ïò¿Í»§·¢ËÍÏÔʾÊý¾Ý¼°·¢ËÍÒþ²ØÊ½HTTPÏìÓ¦Êý¾ÝµÈ¡£¶øJSPÔò¸ºÔðÏÔʾÊý¾Ý£¬Ò²¾ÍÊǸºÔðÒ³ÃæÏÔʾ¡£
2£¬JavaBeanÔÚJava Web×é¼þµÄÓ¦ÓÃ
JavaBean·â×°ÊôÐԺͷ½·¨£¬Ê¹Ö®¾ßÓжÀÁ¢µÄ¹¦ÄÜ¡¢¿ÉÖØÓõIJ¢ÇÒÓëÆäËû¿Ø¼þͨѶµÄÀà¡£
ÒÔÏÂÊÇjsp¶ÔJavaBeanµÄ¼¸µãÓ¦Óá£
1£©<jsp:userBean>
¶¨Î»²¢ÊµÀý»¯Ò»¸öJavaBean¡£
<jsp:JavaBean id="user_page" scope="page" class="com.UserInfoBean"/>
ÆäÖУ¬idÊÇÀàµÄÓ³ÉäÃû³Æ£¬scopeΪ»á»°µÄÓÐЧ·¶Î§£¬classΪÀÛµÄÓ³Éä·¾¶
2£©<jsp:setProperty>
ÉèÖÃÒ»¸öJavaBeanµÄÊôÐÔ¡£
<jsp:setProperty name="user_age" property="user" value="<%=user_page.getUser()+1%>"></jsp:setProperty>
ÆäÖУ¬nameÖ¸¶¨ÁËJavabeanµÄ¶ÔÏó£»propertyÊôÐÔ±íÃ÷ÐèÒªÉ趨ֵµÄJavabeanÊôÐÔµÄÃû³Æ£»valueÊôÐÔ±íÃ÷ÁËÐèÒªÉ趨¸øJavabeanµÄÊôÐԵġ¿Öµ¡£
3£©<jsp:getProperty>
¶ÁÈ¡JavaBeanµÄÊôÐÔÖµ¡£
<jsp:getProperty name="user_page" property="user"/>
4)<jsp:include>
°üº¬Ò»¸öÒ³Ãæ
<jsp:include page="index.jsp" flush="true">
ÔÚÕâÀïÓеĵط½Òª×¢ÒâµÄ£¬ÄǾÍÊÇ
£¼%@ include file=”relativeURI”%£¾ ÊÇÔÚ·­Òë½×¶ÎÖ´ÐÐ
£¼jsp:include page=”relativeURI” flush=”true” /£¾ ÔÚÇëÇó´¦Àí½×¶ÎÖ´ÐÐ.
1£© Ö´ÐÐʱ¼äÉÏ:
<%@ include file=”relativeURI”%> ÊÇÔÚ·­Òë½×¶ÎÖ´ÐÐ
<jsp:include page=”relativeURI” flush=”true” /> ÔÚÇëÇó´¦Àí½×¶ÎÖ´ÐС£
2£©ÒýÈëÄÚÈݵIJ»Í¬:
<%@ include file=”relativeURI”%> ÒýÈ뾲̬Îı¾(html,jsp),ÔÚJSPÒ³Ãæ±»×ª»¯³Éservlet֮ǰºÍËüÈں͵½Ò»Æð¡£ËùÒÔҪעÒâÁ½¸öÒ³ÃæÔÚÒýÓñäÁ¿Éϲ»ÒªÖظ´
<jsp:include page=”relativeURI” flush=”true” /> ÒýÈëÖ´ÐÐÒ³Ãæ»òservletËùÉú³ÉµÄÓ¦´ðÎı¾£¬ËùÒÔҪעÒâµÄÊÇÔÚ±»°üº¬µÄÒ³ÃæÉϲ»ÄÜÒýÓõ½µÚÒ»¸ö°üº


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

java ÃæÏò¶ÔÏó˼Ïë±à³Ì

µÚÒ»Õ              ¸ÅÊö
°æÈ¨ÉùÃ÷
´ËÎĵµÓÉÍõ½¡Ðñ(http://www.wangjianxu.com  ginger547@gmail.com )¸ºÔðÕûÀí×ܽᣬ²¢¶Ô¸ÃÎĵµ±£ÓÐÓÐÏÞÔðÈÎȨÀû£¬´ËÎĵµÖ»ÄÜÓÃÓÚѧϰÒÔ¼°½Ìѧ£¬ÇëÎðÓÃ×÷ÉÌÒµÓÃ;£¬Òò´Ë¶ø
²úÉúµÄ·¨ÂÉÎÊÌ⣬±¾ÈËÒ»¸Å²»¸ºÔð¡£ ±¾ ......

Java ¶ÏµãÐø´«

±¾ÎÄ´Ó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;
//¶ÏµãÐø´ ......

ÖпÆÔº·Ö´Ê¹¤¾ßimdict chinese analyzerѧϰ java·Ö´Ê

ÏÂÔØÁ´½Óhttp://ictclas.org/Down_OpenSrc.asp
¼òµ¥½éÉÜ£º
 imdict-chinese-analyzerÊÇ imdictÖÇÄܴʵäµÄÖÇÄÜÖÐÎÄ·Ö´ÊÄ£¿é£¬×÷Õ߸ßСƽ£¬Ëã·¨»ùÓÚÒþÂí
¶û¿Æ·òÄ£ÐÍ(Hidden Markov Model, HMM)£¬ÊÇÖйú¿ÆÑ§Ôº¼ÆËã¼¼ÊõÑо¿ËùµÄictclasÖÐÎķִʳÌÐò
µÄÖØÐÂʵÏÖ£¨»ùÓÚJava£©£¬¿ÉÒÔÖ±½ÓΪluceneËÑË÷ÒýÇæÌṩÖÐÎÄ·Ö´ÊÖ§³Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ