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

ÈÃÎÒÒ»¼ûÖÓÇéµÄjava web mvc ¿ò¼Ü£ºVraptor3

Ç°¶Îʱ¼ä¹«Ë¾¿ªÊ¼ÓÃSSH¿ò¼Ü£¬ÒòΪÒÔǰûÓÐÓùý£¬Ï¸ö¼¸¸ödemo¿´¿´£¬·¢ÏÖÏëÀí½âStructs2µÄÁ÷³ÌÕæÊÇÀ§ÄÑ£»ºóÀ´ÓÖÏëÕûºÏExt½øÐнçÃ濪·¢£¬ÉÏÍøÕÒ×ÊÁÏ£¬·¢ÏÖÓÃStructsÕûºÏAjax»¹ÕæÊÇÂé·³£¬²»½öǰ̨Ҫ×öÐ޸ģ¬ºǫ́»¹Òª¸ÄÅäÖÃÎļþÒÔ¼°actionÀ࣬Õæ²»ÖªµÀÕâÑùµÄ¶«Î÷×öÍêÁ˸ÃÔõôÑùȥά»¤£¡¼ÌÐøÔÚÍøÉÏÕÒÖÕÓÚ±»ÎÒ·¢ÏÖÁËVraptor£¬¸Ã¿ò¼Ü²»½öʹÓ÷½±ã£¬¶øÇÒ´úÂë²ã´Î¼òµ¥£¬Ò×ÓÚ³ÌÐòÔ±Àí½âºÍÀ©Õ¹¡£ÏÖ½«StructsÓëVraptor¶Ô±ÈÈçÏ£º
¹¦ÄÜ
Structs2
Vraptor3
ÇëÇ󷾶Óë·½·¨Ó³Éä
ҪдStructsµÄÅäÖÃÎļþ
²ÉÓÓԼ¶¨ÓÅÓÚÅäÖÔԭÔò×Ô¶¯Ó³É䣬Ҳ¿Éͨ¹ý×¢½â½øÐÐÖ¸¶¨
ÇëÇó²ÎÊýµÄÓ³Éä
ÐèÒªÔÚControllerÀïÉèÖÃÿһ¸ö²ÎÊýµÄÊôÐÔ£¬»¹ÒªÕûÒ»¶Ñget/set
Ö±½ÓÓ³Éäµ½·½·¨µÄ²ÎÊýÀàµÄÊôÐÔÖÐ
ÇëÇó²ÎÊýÑéÖ¤
ÏëÒªÑéÖ¤¸ö×ֶβ»½öÒª¸ÄÀàÎļþ¡¢»¹ÒªÌí¼ÓÅäÖÃÎļþ¡¢Ò³Ã滹ҪʹÓÃStructsµÄ±êÇ©
ÄÚÖÿÉÀ©Õ¹ÑéÖ¤Àà¡¢HarbernateÑéÖ¤£¬Ñé֤ʧ°Üºó×Ô¶¯½«´íÎóÐÅÏ¢·ÅÈërequestscopeÖÐ
viewµÄµ÷ÓÃ
ÒªÔÚÅäÖÃÎļþÖÐÅäÖöÔÓ¦·½·¨µÄResult
¸ù¾Ý¹æÔòÓ³Éä¡¢Ò²¿ÉÔÚjava´úÂëÖÐͨ¹ý×¢ÈëResult¶ÔÏó½øÐÐ×Ô¶¨ÒåµÄÒ³Ãæµ÷ÓÃ
ajaxÖ§³Ö
Òª¸ÄÒ³ÃæÎļþ¡¢ÅäÖÃÎļþ¡¢javaÀàÒ»´ó¶Ñ¹¤×÷
Ö»Ðè¼òµ¥ÐÞ¸ÄrequestµÄheadÊôÐÔ»òÊÇÌí¼Ó_formatÊôÐÔ£¬Í¨¹ýÔ¼¶¨µÄjspÒ³ÃæÓû§¿É·½±ãµÄ¶¨ÖÆ·µ»Ø×Ö·û´®£» »òÕßʹÓÃResult¶ÔÏó½«ËùÐèÒªµÄÀàתΪjson»òÊÇxml´®
ÕûºÏSpring
ÐèÒªÔÚStructsµÄÅäÖÃÎļþÖнøÐÐÅäÖÃ
ĬÈϲÉÓÃSpringºËÐÄIOCÈÝÆ÷£¬Ê²Ã´¶¼²»ÐèÒª×ö


Ïà¹ØÎĵµ£º

JAVA¶ÁÊé±Ê¼Ç£¨Ò»£©

1.±äÁ¿£º
¶ÔÓÚ»ù±¾ÀàÐ͵ÄÈ«¾Ö±äÁ¿£¬ÈôûÓгõʼ»¯£¬ÏµÍ³»á×Ô¶¯³õʼ»¯Îª¸ÃÀàÐ͵ijõʼֵ£»¶ø¶ÔÓÚ¾Ö²¿±äÁ¿£¬Ôò±ØÐëÏÔʾµÄ½øÐгõʼ»¯¡£
2.³£Á¿£º
final int M_Max=111;
final±íʾֻÄܸø±äÁ¿M_MAX¸³ÖµÒ»´Î£¬¸³ÖµÖ®ºó£¬M_MAXµÄÖµ¾Í²»¿ÉÒÔÖØи³Öµ¡£Ëù¸³µÄÖµ¿ÉÒÔÊÇÒ»¸ö±í´ïʽ£¬Ò²¿ÉÒÔÊÇÒ»¸ö¾ßÌåµÄÖµ¡£
3.Àà³£Á¿£º
static fina ......

ÅäÖÃJAVA¿ª·¢»·¾³

Ê×ÏȽéÉÜһϻ·¾³±äÁ¿µÄÉèÖ÷½·¨£º
£¨ÕâÀïÒÔjdk1.5À´°²×°£¬ÆäËû°æ±¾Ò»Ñù£©
ÔÚ°Ñjdk1.5°²×°µ½¼ÆËã»úÖÐÖ®ºó£¬ÎÒÃÇÀ´½øÐÐÉèÖÃʹjava»·¾³Äܹ»Ê¹Óá£
         Ê×ÏÈÓÒ¼üµãÎҵĵçÄÔ¡£´ò¿ªÊôÐÔ¡£È»ºóÑ¡Ôñ“¸ß¼¶”ÀïÃæµÄ“»·¾³±äÁ¿”£¬ÔÚеĴò¿ª½çÃæÖеÄϵͳ±äÁ¿Ð ......

javaMail java·¢ËÍemail

·¢ËÍemailÓ¦Óã»
package mail;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import sun.misc.BASE64Encoder;
public class Mail {
 // ¶¨Òå·¢¼þÈËÏÔʾÃû³Æ¡¢·¢¼þÈË¡¢ÊÕ¼þÈË¡¢³­ËÍ¡¢SMTP·þÎñÆ÷¡¢Óû§Ãû¡¢ÃÜÂë¡¢Ö÷Ìâ¡¢ÄÚÈݵÈ
 private String d ......

java jdbc


JDBC£º
    |-- Êý¾Ý¿â»¥Áª¡£
    |-- ÓÉSUN¹«Ë¾ËùÖƶ¨µÄÓÃÀ´·ÃÎÊÊý¾Ý¿âµÄ¹æ·¶¡£
    |-- Êý¾Ý¿âÊý¾Ý <= ½»»¥ => Ó¦ÓóÌÐò¡£
JDBC°üº¬Ö÷ÒªÁ½¸ö²¿·Ö£º
    |-- part 1.ÓÉSUN¹«Ë¾Öƶ¨µÄ¹æ·¶½Ó¿Ú
        |-- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ