JSF+HTML±êÇ©×ܽá
*Ò³ÃæµÄ¿ªÍ·
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<%@ taglib uri="http://jsftutorials.net/htmLib" prefix="htm"%>
<%@ taglib uri="http://www.ccb.cn/xmdc" prefix="xmdc"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/style_organ.css" />
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/public.css" />
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/css/ext.css" />
*¼ÙÊý¾ÝµÄ¹¹Ôì
<%String str[] = new String[] { "ÏîÄ¿Ãû³Æ1", "ÏîÄ¿Ãû³Æ2" };
javax.faces.model.ArrayDataModel ad = new javax.faces.model.ArrayDataModel(str);
pageContext.setAttribute("ad", ad, PageContext.SESSION_SCOPE);
%>
1¡¢inputTextarea
³£ÓÃÊôÐÔ£ºcols
Rows
³£ÓõÄд·¨£º
<h:inputTextarea value=”” rows=”8” style=”width:100%” />
2¡¢inputText
³£ÓÃÊôÐÔ£ºreadonly
Size ¿òµÄ´óС
Maxlength ×î¶à×Ö·ûÊý
³£ÓõÄд·¨£º
<h:inputText value=”” size=”5” readonly=”true”
Maxlength=”6”
style=”color:yellow;background:Teal;” />
3¡¢outputText
³£ÓÃÊôÐÔ£ºescape Èç¹ûÉèÖÃΪtrue£¬»áתÒå<¡¢>ºÍ£¦×Ö·û¡£Ä¬ÈÏֵΪfalse
&
Ïà¹ØÎĵµ£º
<! - - ... - -> 註½â
<!> ÅÜ馬燈
<marquee>...</marquee>ÆÕͨ捲動
<marquee behavior=slide>...</marquee>»¬動
<marquee behavior=scroll>...</marquee>預設捲動
......
jsp(java server pages)ÊÇÒ»ÖÖ¼¼Êõ,ÓÃÀ´´¦Àí¿Í»§¶ËÇëÇóµÄ,(Ä¿µÄÊÇΪÁË´ïµ½¶¯Ì¬ÍøÒ³µÄЧ¹û),´¦Àíºó´«¸ø¿Í»§¶Ë(Ò²¿ÉÒÔ˵¸øÁËä¯ÀÀÆ÷),¾Í³ÉÁËÎÒÃÇ¿´µ½µÄ¾²Ì¬ÍøÒ³(HTML)
HTML ¼ÓÈëJava´úÂë(±ÈÈç<%...%>)²»»áÓÖÈκÎЧ¹û,Ö»»á½²<%...%>ÏÔʾµ½Ò³ÃæÐÐ,»òÕ߸ù¾ÝλÖÃÓ°Ïì±àÒë. JSP(Java Server Page)Ò³ÃæÆäʵ¾ÍÊÇ ......
Ê×ÏÈÔÚÓ¦ÓóÌÐòµÄWEB.CONFIGÐÞ¸ÄÈçϽڵ㡣
<httpHandlers>
<add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
<assemblies>
<buildProviders>
<add ext ......
¾ÅÊ®Äê´úÖÐÆÚ£¬WWWÒÔѸÃÍÖ®ÊÆתÑÛõÒÉí´«²¥ÐÅÏ¢µÄÖ÷ÒªÇþµÀÖ®Ò»¡£ä¯ÀÀÆ÷µÄÉíÓ°¿ªÊ¼ÎÞ´¦²»ÔÚ£¬Óû§Ò²ËæÖ®¿ªÊ¼ÊÊÓ¦ÕâÖÖÐÅÏ¢´«²¥·½Ê½¡£ÏÔÈ»£¬WWWÌṩµÄÓ¦ÓÃƽ̨Äܹ»Ó®µÃÀúÊ·ÉÏÈκÎÒ»¸öƽ̨¶¼ÎÞ·¨±È¼°µÄÓû§Á¿¡£µ«µ±Ê±ºÜÄÑʵÏÖÕâÑùµÄÄ¿±êÊÇÒòΪһЩ±ê×¼£¨HTML¡¢HTTPµÈ£©¶¼²»ºÜÍêÉÆ£¬ÕâЩ±ê×¼Éè¼ÆµÄʱºò¶¼Ã»Óп¼Âǵ½¸ß¶È½»»¥ºÍ¸»¿Í ......
δÀ´µÄ Web ÕýÔÚ¼ÓËÙµ½À´£¬HTML5 ÒѾÍê³ÉϸÔòµÄÖƶ¨²¢ÐîÊÆ´ý·¢£¬¾¡¹ÜËüµÄʵÏÖÈÔ´ýʱÈÕ
£¬Ò»Ð©ÓÐÇ°Õ°ÑÛ¹âµÄä¯ÀÀÆ÷ÒѾ¿ªÊ¼Ö§³Ö HTML5 µÄ²¿·Ö¹¦ÄÜ
¡£HTML5 ÊÇ10ÄêÀ´ Web ±ê×¼µÄ×î´ó¸Ä½ø£¬È»¶ø HTML5 Ö®ºóÊÇʲô£¿ÊÇ HTML6 Âð£¿
²»ÊÇ¡£ WHAT ¹¤×÷×é (WHAT Working Group)
ÕýÁªºÏ W3C
Öƶ¨ HTML5 µÄºóÐø°æ±¾µÄϸÔò£¬Ëûà ......