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

MyEclipseÖÐÐÞ¸ÄĬÈÏJSP±à¼­Æ÷µÄ·½·¨.txt

      ÔÚMyEclipseÖпª·¢WEBÓ¦ÓÃʱ¾­³£Òª´´½¨JSPÎļþ£¬µ«ÊÇÿ´ÎMyEclipse¶¼»áÓÃĬÈϵÄMyEclipse Visual JSP Designer£¬´ò¿ªËٶȷdz£Âý£¬¶øÇÒ»ù±¾ÉÏÒ²Óò»µ½Õâ¸ö¿ÉÊÓ»¯µÄJSP±à¼­Æ÷£¬¶à°ë¶¼ÊÇʹÓÃMyEclipse JSP Editor£¬ËùÒÔ£¬ÓбØÒª°ÑĬÈϵÄJSPÎļþ±à¼­Æ÷¸Ä³ÉMyEclipse JSP Editor£¬·½±ãʹÓã¬Ò²¿ÉÒÔ½ÚÊ¡´ò¿ªÊ±¼ä.
>>Ð޸ķ½·¨>>£º
     ÒÀ´Î´ò¿ªÈçϲ˵¥ºÍÑ¡Ï
     Windows->Preferences->General->Editors->File Associations.
    ÔÚÎļþ¹ØÁª¶Ô»°¿òÖУ¬¿ÉÒÔ¿´µ½File TypesÎļþÀàÐÍÁÐ±í£¬Ñ¡ÖÐ*.jsp£¬È»ºóÔÚÏÂÃæµÄAssociated EditorsÁбí¿òÖÐÑ¡ÖÐMyEclipse JSP Editor£¬×îºó£¬µ¥»÷ÓұߵÄdefault°´Å¥¾ÍÐÐÁË¡£
Õâʱ£¬Äã¿ÉÒÔ¿´µ½MyEclipse JSP Editor±»ÒƵ½Á˵ÚÒ»¸öλÖã¬×îºóµ¥»÷OK°´Å¥¾Í¿ÉÒÔʹÓÃMyEclipse JSP Editor´ò¿ªJSPÒ³ÃæÁË¡£
     ÆäËûµÄÎļþĬÈϱ༭Æ÷Ð޸ķ½Ê½¸úÕâ¸ö²Ù×÷ÊÇÒ»ÑùµÄ£¬±ÈÈ磬ÄãÒ²¿ÉÒÔÐÞ¸ÄĬÈϵÄHTMLÎļþµÄĬÈÏ´ò¿ª±à¼­Æ÷¡£


Ïà¹ØÎĵµ£º

jsp visit spring


<%@page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="ccp.suddenattack.service.news.*"%> ......

¿´V512ÊÓƵJsp/Servletѧϰ±Ê¼Ç

//ѧϰ±Ê¼Ç, ¿ÉÄÜÓÐЩµØ·½Àí½âÓÐÎó, »á±í´ï²»Çå³þ
        v512_servlet+jsp
01 ÔÚÐÞ¸ÄÍêCookieºó,Ò»¶¨Òª¼ÓÉÏresponse.addCookie(c);
   CookieÖÐÖ»Äܱ£´æ×Öĸ»òÊý×ÖÐÅÏ¢;
02 req.getSession()Óëreq.getSession(boolean create)
   ÎÞ²ÎÊýµÄ == ÓвÎÊýµÄ²ÎÊýÎ ......

ÔÚstruts2ÖдÓjspÒ³Ãæ´«Öµµ½actionÖÐ

1¡¢Í¨¹ý<s:form
action="ÌøתҳÃæ">Ìá½»Öµ£¬µ«ÊÇÔÚ<s:form>±êÇ©ÖеÄactionºóÃæÖÁ¶àÖ»ÄܸúÒ»¸ö²ÎÊý£¬²¢ÇÒ»¹»á±¨¾¯¸æ£¬ËùÒÔÈç¹û
Ïë´«µÝ²ÎÊý¿ÉÒÔÓÃ<s:hidden name=""
values="username"></s:hidden>À´´«Öµ£¬µ«ÊÇÕý¹æµÄд·¨ÐèÒªÅäºÏ<s:set>±êÇ©À´ÓÃ
È磺
......

APACHE+TOMCAT»·¾³ÏÂJSPµÄ±àÂëÎÊÌâ

½ñÌìÓÖÓöµ½ÂÒÂëÎÊÌâ,¿ÉÕæ·³.ΪʲôTOMCAT¾Í²»ÄÜ×Ô¶¯ÅжÏÏîÄ¿µÄ±àÂë,¶øÒ»¶¨ÒªÏîÄ¿×ñÑ­TOMCATµÄ±àÂë.
˵˵½â¾ö·½·¨°É:
ÔÚTOMCATµÄSERVER.XMLÅäÖÃÎļþÖеÄconnectorÖÐÌí¼ÓURIEncoding="UTF-8"ÊôÐÔ,Èç
<Connector port="88" maxHttpHeaderSize="8192" maxThreads="20" minSpareThreads="5" maxSpareThreads="10"
 e ......

JSPÁ¬½ÓMySqlÊý¾Ý¿â


Á¬Ðø¼¸Ìì°²×°ÅäÖúÍÁ¬½ÓMysqlÊý¾Ý¿â£¬½ñÌìÖÕÓڳɹ¦ÁË£¬»ØÏëÕ⼸Ì죬ÕæµÄÊÇÌðËá¿àÀ±¶¼ÓУ¬µ¥mysql¾ÍÖØ×°Á˲»ÏÂ10´Î£¬¶øÔÚeclipseÉϱàдµÄÁ¬½ÓÊý¾Ý¿âµÄ³ÌÐò×ÜÊDZ¨´í£®ÎÒ¶¼ÒѾ­downÁËoracal×¼±¸·ÅÆúmysqlÁË£¬²»¹ý£®£®£®¾ÍÏóµçÊÓ¾çÑݵÄÄÇÑù£¬×ª»ú×ÜÊÇÔÚÕâ¸öʱºò³öÏÖ£¬ÏÈÊÇ¿´µ½ÁËsaulzy¹ØÓÚmysql4.1.11°æ±¾µÄ°²×°½éÉÜ£¬½Ó×ÅÓÖÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ