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

jsp ±êÇ©taglib²»Æð×÷ÓõÄÎÊÌâ

JSTL <c:out value="${EL}">²»ÄÜÕýÈ·Êä³öµÄÎÊÌâ
ÓÉÓÚJsp2.0Ïòºó¼æÈݵÄÌØÐÔ£¬ µ±Óöµ½Ê¹ÓÃJsp 1.2£¨Servlet v2.3£©µÄÍøվʱ»áĬÈϵĽûÓÃJSP2.0 EL£¬ËùÒÔµ¼ÖÂc:out²»ÄÜÕýÈ·Êä³ö¡£
£¨ÕâÀï×¢ÒâJsp 1.2½ûÓÃJSP2.0µÄEL£¬¶øÊÇȥʹÓÃJSTL 1.0 taglibÈ¥½âÎöEL¡£ËùÒÔʹÓÃJSP 1.2+JSTL 1.0²»»á³öÎÊÌ⣬
¶øʹÓÃÁËJSP 1.2+JSTL 1.1¾Í»áµ¼ÖÂc:out²»ÄÜÕýÈ·Êä³ö£©
ÆôÓÃEL»òÐÞ¸Äwebv.xmlΪjsp2.0¿ÉÒÔ½â¾öÎÊÌâ¡£
ÆôÓÃEL£ºÔÚjspÒ³ÃæÖмÓÈë <%@ page isELIgnored="false"%>
pageÖ¸ÁîµÄisELIgnored屬ÐÔÊÇ¿ØÖÆELµÄʹÓÃ權µÄ,ËüµÄ兩個Öµ,trueºÍfalse
Èç¹û isELIgnored='true'±íʾ½ûÓÃEL,isELIgnored='false' ±íʾ¿ÉÒÔʹÓÃEL£¬ Ĭ認ÊÇfalse
ÐÞ¸Äwebv.xmlΪjsp2.0
ΪÁËÓÃEL¸ÄΪ
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
      http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
  <display-name>WebModule1 </display-name>
</web-app>


Ïà¹ØÎĵµ£º

Jsp±à³Ì

 JAVA×ÛºÏÃæÊÔÌ⣺ҳÃæµÄץȡ¡¢½âÎö¡¢±£´æÊý¾Ý¿âºÍÉú³ÉHTMLµÄÒ³Ãæչʾ ÊÕ²Ø
´ÎÀý×Ó¿ÉÒÔÓÃÀ´Ñ§Ï°ÍøÂç±à³Ì£¬ÕýÔò±í´ïʽµÄʹÓ㬷ºÐÍ£¬Êý¾Ý¿âµÄ»ù±¾²Ù×÷µÈJAVA֪ʶ
ÎÊÌâÈçÏ£ºÀ´Ô´ÓÚÂÛ̳
http://topic.csdn.net/u/20090616/13/59aa4e2d-3752-45df-9c1b-c65c46c3e4d7.html
дһ¸öjspÒ³Ã棬·ÃÎÊʱÏÔʾ´ÓÏÂÃæµÄÒ³ÃæÌ ......

java web¿ª·¢ÖУ¬ÈçºÎ²é¿´JSPºÍServlet°æ±¾

java web¿ª·¢ÖУ¬ÈçºÎ²é¿´JSPºÍServlet°æ±¾
2008-12-10 09:00
ÎÒÃÇÔÚjava web¿ª·¢µÄ¹ý³ÌÖУ¬ÓÐʱÔÚ×ÊÁÏÉÏ¿ÉÄÜ»áÌáµ½»·¾³ËùÒªÖ§³ÖµÄJSP£¬Servlet°æ±¾¡£Èç¹û°æ±¾µÍ¾Í¿ÉÄܳöÏÖ²âÊÔ´íÎó¡£
·½·¨£º´ò¿ªtomcatµÄcommon\lib Ŀ¼Ï£¬ÓÐÁ½¸öJARÎļþ£º jsp-api.jar servlet-api.jar ¡£Èç¹ûûÓУ¬ÄÇ¿ÉÄÜÊÇÄãûÓÐÌí¼Ó½øÀ´¡£½âѹÕâÁ½¸ ......

SSH ÏîÄ¿ÖУ¬action»ñÈ¡jspÒ³Ãæ´«¹ýÀ´µÄselectÖµ

ÏîÄ¿¿ò¼ÜS2SH,jspÒ³ÃæÈçÏ£¬selectÁбíÉèΪmultiple¡£ÎªÁËÄÜÔÚactionÀïÈ¡µ½Ç°Ì¨½çÃæselectÁбíµÄ¶àÑ¡Öµ£¬Ï¹¸ãÁËÁ½Ì죬½ñÌìÖÕÓڳɹ¦¡£Æäʵºǫ́actionȡǰ̨jspÒ³ÃæµÄÖµºÜ¼òµ¥£¬·Ï»°²»¶à˵£¬ÏÈÌù´úÂ룺
<body>
<form action="sendMsg.action?senderId=${users.id }&username=${users.username}" m ......

JSP µÃµ½Ò³Ãæµã»÷radioµÄÖµ

<SCRIPT LANGUAGE="JavaScript">
var tt = "";
   var flag = false;
   var radios = document.getElementsByName("t1");//´ÓjspÖÐÈ¡radioµÄid»òradioµÄname
   for(var i=0;i<radios.length;i++){
   //Èç¹ûµ±Ç°ÓÐÑ¡ÖÐ
  ......

xml£¬jsp,dtd,xsd ÌáʾÐÅÏ¢

½øÈëMyEclipse6.XÏÂ
Ð޸ģºeclipse.ini Îļþ
-Duser.language=en
¸Ä³É
-Duser.language=zh
µ¯³öÌáʾ£ºCtrl+"/"
dtd ÃüÃû¿Õ¼äµÄÌáʾÐÅÏ¢
window-->Preference-->xml-->XML Catalog-->add
Location :sql-map-2.dtd
key type :pubic ID
key:-//ibatis.apache.org//DTD SQL Map 2.0//EN (XMLÎļþÃüÃû¿Õ¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ