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

Jsp ÒýÓà css ÑùʽÎļþÎÞЧµÄÎÊÌâ½â¾ö

ÐÞ¸ÄÁËcss ÑùʽÎļþºó£¬ÖØÐÂä¯ÀÀ¸ÃjspÒ³Ã棬·¢ÏÖÐÂÐ޸ĵÄÑùʽûÓÐÉúЧ¡£×ÜÒÔΪÊÇÏîÄ¿»º´æËùÒýÆðµÄ£¬ÓÚÊÇÇåÀíËùÓÐÏîÄ¿£¬ÖØй¹½¨ÏîÄ¿¡£²»ÐС£Ö´ÐÐserver µÄ publish »¹ÊDz»ÐС£ÓÃwindow µÄËÑË÷¹¦ÄÜ·¢ÏÖ³ýÁË WebContent Ŀ¼Óиà css ÎļþÍ⣬.metadata\.plugins\org.eclipse.wst.server.core\tmp1\webapps\ Ŀ¼ÏÂÒ²´æÔڸà css ÑùʽÎļþ£¬µ«·¢ÏÖ¸ÃÎļþµÄ×î½üÐÞ¸ÄÈÕÆÚÈ´ÊÇ×òÌìµÄ£¬¹ûÈ»´ò¿ª¸ÃÎļþ·¢ÏÖÄÚÈÝ»¹ÊǾɵġ£
ÄÇô£¬ÎªÊ²Ã´ÎÒÖ´ÐÐ server ÊÓͼµÄ publish ¹¦ÄÜûÓн«ÐµÄÎļþÌæ»»ÄØ£¿
Ô­À´Ò»Ö±ÎÒ¶¼Ï°¹ßÓà vim ±à¼­¹¤¾ßÀ´±à¼­ css Îļþ£¬¶øÕâÑù Eclipse ÊǼà²â²»Á˸ÃÎļþÒѾ­Ð޸ģ¬´Ó¶øÖ´ÐÐ publish ʱ²»°ÑÐÂÎļþÌæ»»¾ÉÎļþ¡£±ØÐëÊÇÔÚ Eclipse »·¾³ÖÐÈ¥ÐÞ¸Ä css Îļþ£¬È»ºóÔÙÖ´ÐÐ publish¡£
×ܽá: Óà Eclipse ×öjsp µÄ¿ª·¢£¬ÐÞ¸ÄÎļþ²Ù×÷Ó¦¸Ã¾¡Á¿ Eclipse ¿ª·¢»·¾³À´Íê³É¡£


Ïà¹ØÎĵµ£º

Jsp±àÂë¹æ·¶


Jsp±àÂë¹æ·¶
1.1 Îļþºó׺(File Suffixes)
ÎļþÀà±ð ¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡Îļþºó׺
--------------------------------------
JavaÔ´Îļþ¡¡¡¡¡¡¡¡¡¡¡¡¡¡.java
Java×Ö½ÚÂëÎļþ¡¡¡¡¡¡¡¡¡¡.class
¶¯Ì¬Ò³Ãæ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡.jsp
¾²Ì¬Ò³Ãæ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡.html
½Å±¾Îļþ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡.js
1.2 ³£ÓÃÎļþÃû(Common ......

JSPÒ³Ãæµ÷ÓÃjsÖÐÎÄÂÒÂë

jspÖеÚÒ»¾ä£º
<%@ page language="java" import="java.sql.*,java.util.*,"  contentType="text/HTML;charset=gb2312" pageEncoding="gb2312"%>
htmlÖмÓÉÏ
<meta http-equiv="Content-Type" content="text/html;charset=gb2312" />
ͨ³£ÕâÑù¾ÍûÓÐÎÊÌâÁË¡£    .
ÔÙÕߣº µ¼ÈëjsʱºòÉ ......

¹ØÓÚÍøÕ¾Ê×Ò³Ãû³Æ°²È«ÐÔÎÊÌâ JSP ÔÊÐíĿ¼ä¯ÀÀ

ÔÚ²»ÔÊÐíĿ¼ä¯ÀÀµÄÇé¿öÏ     ä¯ÀÀÆ÷»áÏÈÕÒµ½Ê×Ò³£¨Ä¬ÈÏΪindex.html  /index.jsp...£©
·ñÔò³ö´í
Òò´Ë ÈôÊ×Ò³±»¶ñÒâ¸ü¸Ä   ÍøÕ¾±ÀÀ£
½â¾ö·½·¨£º
¸ü¸ÄĬÈÏÆô¶¯Ò³Ã棺$tomcat/conf/web.xml×îºóλÖÃ
<welcome-file-list>
<welcome-file>index.html</welcome-file> ......

JSPÓëServletµÄÏ໥ͨÐÅ·½Ê½(Ò»)

     JSPÓëServletÖ®¼äµÄ»á»°¸ú×Ù·½Ê½Óжà¸ö£¬×¢¶¨ËûÃǵÄͨÐÅ·½Ê½ÓжàÖÖ¡£
    ÏÂÃæÏÈÀ´¿´¿´4ÖлỰ¸ú×Ù·½Ê½£º
     Ò»£ºSession
     ´«ËͶˣº
      HttpSession session=request.getSession();
sessio ......

JSPÖеIJÎÊý´«µÝ·½·¨

£¨1£©ÀûÓÃ<jsp:param name="paramName" value="paramValue"></jsp:param>ÆäÖÐnameΪÓëÊôÐÔÏà¹ØÁªµÄ¹Ø¼ü´Ê£¬valueΪÊôÐÔµÄÖµ¡£
    ʾÀý£º´«³£Á¿×Ö·û´®<param name="userName" value="shilei"/>
    ʾÀý£º´«±äÁ¿ User user=new User("shilei");//UserÊÇÒ»¸öÀà
 &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ