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

jsp(JAVA)α¾²Ì¬µÄ¾ßÌåÉèÖùý³Ì

Ç°¼¸Ì죬ºþÄÏSEOÔÚÓÃjspдһ¸öÆóÒµÕ¾³ÌÐòµÄʱºò£¬ÒòΪҪ²Î¼ÓÏîÄ¿´ð±ç¾ºÑ¡£¬ËùÒÔ¾ÍÏëΪ×Ô¼ºÐ´µÄ³ÌÐò¸ã¼¸¸öÁÁµã£¬ÒòΪ¸ãSEO¾ÃÁË£¬²»×Ô¾õ¾Í»áÏ뵽α¾²Ì¬£¬µ«ÊÇÔڰٶȲéÁËÒ»¸öÏÂÎ磬ֻ²éµ½ÁËurlrewrite¼Ü°üµÄÏÂÔصط½£¬ºÍ¼ÜÉè·½ÃæµÄÎÄÕ£¬²¢Ã»ÓÐjsp(JAVA)α¾²Ì¬µÄ¾ßÌå²Ù×÷ʾ·¶£¬ÓеÄÒ²Ö»ÊÇ£¬µ¥Ò³ÃæµÄα¾²Ì¬µÄд·¨£¬ÕâÀïÎÒ¾ÍÖØÍ·µ½Î²¸ø´ó¼ÒÑÝʾһ±ß£¡
Ò»£ºµ½http://tuckey.org/urlrewrite/ÏÂÔØurlrewrite¼Ü°ü£¨ÍƼö2.6.0£©
¶þ£º½âѹËùÏÂÔصÄÎļþ,°Ñurlrewrite-2.6.0.jar¸´ÖƵ½ÏîÄ¿µÄWebRoot/WEB-INF/lib/Ŀ¼ÏÂ
Èý£º°Ñurlrewrite.xml¸´ÖƵ½ÏîÄ¿µÄWebRoot/WEB-INF/Ŀ¼ÏÂ
ËÄ£ºÔÚweb.xmlÎļþÖмÓÈëÒÔÏÂ
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
<init-param>
<param-name>logLevel</param-name>
<param-value>WARN</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
£¨UrlRewriteFilterÕâ¸ö¿ÉÒÔ¸ü¸Ä£¬µ«ÊÇÈç¹ûÒª¸ü¸ÄµÄ»°£¬¾ÍÁ½¸öUrlRewriteFilter¶¼Ò»Æð¸ÄΪÏàͬµÄ×Ö·û´®£¬±ÈÈç˵¶¼¸ÄΪ:aaaÒ²ÊÇ¿ÉÒԵģ¡ÆäʵÕâ¸öÔÚurlrewrite.xmlÀïÓÐ˵Ã÷£¬×Ðϸ¿´¿´¾ÍÖªµÀÁË£¡Å¶£¬ÍüÁË£¬ÉÏÃæÕâ¶Î´úÂë¼Óµ½£º</welcome-file-list>Ö®ºó£¬£©
Î壺½ÓÏÂÀ´¾ÍÊÇurlrewrite.xmlÀïÃæµÄ¹æÔòµÄд·¨ÁË
1,µ¥Ò³Ãæ¹æÔòд·¨£º£¨¼ÇµÃ²»Òª°ÑÏîÄ¿Ãûдµ½ÀïÃæÈ¥ÁË£¡£©
<rule>
<from>^/index.html</from>
<to>/index.jsp</to>
</rule>
2£¬´øÒ»¸ö²ÎµÄURL¹æÔòд·¨
°Ñ£ºshowNews.jsp?id=²ÎÊý α³É£ºshownews_²ÎÊý.html
<rule>
<from>^/shownews_(.[0-9]*).html</from>
<to>/showNews.jsp?id=$1</to>
</rule>
()ÀïÃæÊÇÕýÔò±í´ïʽ£¬×Ô¼ºÈ¥ÕÒÕÒÕâ·½ÃæµÄ֪ʶ£¬ÃÀÔª·ûºÅ$1µÄÒâ˼ÊÇÆ¥ÅäµÚÒ»¸öÕýÔò±í´ïʽ
3,´øÁ½¸ö²ÎºÍ¶à¸ö²ÎµÄURL¹æÔòд·¨
°ÑshowNews.jsp?id=²Î1&type=²Î2α³Énews-²Î1-²Î2.html
<rule>
<from>^/news-(.[0-9]*)-(.[0-9]*).html</from>
<to>/showNews.jsp?id=$1&amp;type=$2</to>
</rule>
×¢ÒâÒ»µã£ºÓÃ&


Ïà¹ØÎĵµ£º

Groovy javaµÄºÃ»ï°é3

Groovy ±äÉíΪ Java
Ç°ÃæÒѾ­¿´µ½ Groovy Óë Java ´úÂëʵ¼ÊÉÏ¿ÉÒÔ»¥»»µÄµÚÒ»¸öÖ¤¾Ý¡£ÕâÒ»½Ú½«½øÒ»²½Ö¤Ã÷Õâµã£¬¼ÌÐøʹÓà Groovy ¹¹½¨µÄ HelloWorld Àà¡£
Hello, Java!
ΪÁËʹÄúÈ·ÐÅ Groovy ¾ÍÊÇ Java£¬ÏÖÔÚÔÚ HelloWorld ÀàÉùÃ÷ºÍ·½·¨ÉùÃ÷Ç°Ãæ¼ÓÉÏ public Ð޸ķû£¬ÈçÏÂËùʾ£º
public class HelloWorld {
public static ......

Groovy javaµÄºÃ»ï°é5

ͨ¹ý Groovy ½øÐÐÑ­»·
ͬ´ó¶àÊý½Å±¾ÓïÑÔÒ»Ñù£¬Groovy ¾­³£±»Ðû´«ÎªÉú²úÁ¦¸ü¸ß µÄ Java ÓïÑÔÌæ´úÆ·¡£ÄúÒѾ­¿´µ½ÁË Groovy ȱÉÙÀàÐÍÄܹ»ÈçºÎ¼õÉÙ´ò×Ö¹¤×÷¡£ÔÚÕâÒ»½Ú£¬½«´´½¨²¢ÊÔÓÃÒ»¸ö repeat º¯Êý¡£ÔÚÕâ¸ö¹ý³ÌÖУ¬½«½øÒ»²½Ì½Ë÷ Groovy Ìá¸ßЧÂʵķ½Ê½¡£
¸üºÃ¡¢¸ü¶ÌµÄÑ­»·
ÏÂÃæÕâÖÖ·½·¨¿ÉÒÔ¸üºÃµØ¸ÐÊÜ Groovy ȱ·¦ÀàÐ͵ĺà ......

java ÏÂÔØÎļþ·½·¨´óÈ«


jspÖÐʵÏÖÎļþÏÂÔصÄ×î¼òµ¥µÄ·½Ê½ÊÇÔÚÍøÒ³ÉÏ×ö³¬¼¶Á´½Ó£¬È磺<a href="music/abc.mp3">µã»÷ÏÂÔØ</a>¡£µ«ÊÇÕâÑù·þÎñÆ÷ÉϵÄĿ¼×ÊÔ´»áÖ±½Ó±©Â¶¸ø×îÖÕÓû§£¬»á¸øÍøÕ¾´øÀ´Ò»Ð©²» °²È«µÄÒòËØ¡£Òò´Ë¿ÉÒÔ²ÉÓÃÆäËü·½Ê½ÊµÏÖÏÂÔØ£¬¿ÉÒÔ²ÉÓãº1¡¢RequestDispatcherµÄ·½Ê½½øÐУ»2¡¢²ÉÓÃÎļþÁ÷Êä³öµÄ·½Ê½ÏÂÔØ¡£
1¡¢²ÉÓÃRe ......

cºÍjavaÖеĶþ½øÖÆÎļþ


×î½üÐèҪдһ¶Î³ÌÐò£¬Íê³ÉÒÔÏµĹ¤×÷£¬ÓÃjava½«Êý¾ÝÒÔ¶þ½øÖƵÄÐÎʽдÈëÎļþÖУ¬È»ºóÓÃC¶Á³ö´Ë¶þ½øÖÆÎļþ¡£
¿ªÊ¼µÄʱºòûÓп¼ÂÇ»úÆ÷µÄ×Ö½ÚÐò£¬Ö±½Ó¸ã³ösegment fault.ÏëÁ˺ܾ㬲ÅÃ÷°×Ô­À´ÊÇjavaºÍCµÄ×Ö½ÚÐòÊDz»Ò»ÑùµÄ¡£
javaÖеÄ×Ö½ÚÐòÊÇbig endianµÄ£¬ËüÊÇÓë»úÆ÷Î޹صġ£¶øcµÄ×Ö»úÐòÊÇ»úÆ÷Ïà¹ØµÄ£¬¶øµ±Ç°ÓõĻúÆ÷ÊÇx84 ......

jsp ºÍ javaµÄÖ÷ÒªÇø±ðÊÇʲô?

javascriptдjavaû¹Øϵ,ÖÁÓÚΪʲôÃû×ÖÕâôÏà½ü,¿ÉÄÜÊÇÒòΪjavaºÜÓÐÃûÆøËùÒÔ°ÑÃû×ÖÈ¡³É²î²»¶àµÄ,Ò»ÖÖÐÂÓïÑÔ¸Õ³öÀ´µÄʱºòÒªµãÃûÆøÀ´³öÃû°É~~
javascriptËãÊÇÒ»ÖÖhtml½Å±¾ÄÜÖ±½ÓÖ´ÐеÄÓïÑÔ°É,jspÒª±àÒë²ÅÄÜÖ´ÐÐ,Äã×Ô¼ºÐ´¸öJSP²»¿ªtomcatÖ®ÀàµÄÊÇÎÞ·¨Ö´ÐеÄ.JSPºÍJAVAµÄÇø±ð,JSPËãÊÇJAVAÒ»ÖÖ¼¼Êõ°É,ÓÃÔÚÍøÒ³±à³ÌÉÏ,ÒòΪJAVA² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ