tomcatÏÂjsp²»Äܸüд¦Àí
ij¸öjspÒ³ÃæµÚÒ»´ÎÔËÐÐʱ£¬tomcat»á°ÑËü±àÒë³ÉjavaÎļþ£¬ÒÔºóÔËÐиÃÒ³Ãæʱ£¬tomcat»á¶Ô±ÈjspºÍjavaÎļþµÄÈÕÆÚ£¬Èç¹ûСÓÚ»òµÈÓÚjavaÎļþÔòÈÏΪÊÇjavaÎļþÊÇ×îеÄ,¾ÍÖ±½ÓÔËÐÐÁË
tomcat ÏÂÓиöworkĿ¼,ÀïÃæÓÐÄãËùÓÐÓ¦ÓÃ./tomcat6/work/Catalina/localhost¡£ËùÓеÄjspÒ³ÃæÊ×ÏÈÒª±»±àÒë³É.class
ÔÚÔËÐÐʱ,tomcat»áÖ±½Ó¼ÓÔØclassÎļþ,Õâ¾ÍÊÇjspΪʲôµÚÒ»´ÎÔËÐÐʱºÜÂý,µ«ÊÇÒÔºóÔËÐÐËٶȺܿìµÄÔÒò.
Èç¹ûÒ»¸öjspÐ޸ĺówebÒ³Ãæû¼°Ê±ÏÔʾ¸üС£
ÓÐÁ½ÖÖ·½·¨£º
µÚÒ»£ºÉ¾³ýwork϶ÔÓ¦µÄÓ¦ÓÃclassÎļþ¡£
µÚ¶þ£ºÐ޸ķþÎñÆ÷ΪÕýÈ·µÄʱ¼ä¡£Ubuntu ÐÞ¸Äʱ¼äÃüÁî:Óà date -s 08:56 ¿ÉÒÔ¸Äʱ¼ä
Ïà¹ØÎĵµ£º
required ÊÇÊÇ·ñΪ±ØÑ¡ÊôÐÔ
rtexprvalueµÄÈ«³ÆÊÇ Run-time Expression Value£¬ ËüÓÃÓÚ±íʾÊÇ·ñ¿ÉÒÔʹÓÃJSP±í´ïʽ.
µ±ÔÚ<attribute>±êÇ©ÀïÖ¸¶¨<rtexprvalue>true</rtexprvalue>ʱ£¬ ±íʾ¸Ã×Ô¶¨Òå±êÇ©µÄijÊôÐÔµÄÖµ¿ÉÒÔÖ±½ÓÖ¸¶¨»òÕßͨ¹ý¶¯Ì¬¼ÆËãÖ¸¶¨, example as follow:
<sql:query var="result" & ......
<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++){
//Èç¹ûµ±Ç°ÓÐÑ¡ÖÐ
  ......
½øÈë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ÎļþÃüÃû¿Õ¼ ......
ServletÈý¸öÒªËØ:
1.±ØÐë¼Ì³Ð×ÔHttpServlet
2.±ØÐëʵÏÖdoGet()»òÕßdoPost()
3.±ØÐëÔÚweb.xmlÖÐÅäÖÃServlet
<servlet>
<servlet-name> </servlet-name>
<servlet-class> </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> </servlet-nam ......
ÈÕÆÚÎÊÌâ
1¡¢»ñÈ¡·þÎñÆ÷¶Ëµ±Ç°ÈÕÆÚ£º
<%@ page import="java.util.Date"%>
<%
Date myDate = new Date();
%>
2¡¢»ñÈ¡µ±Ç°Äê¡¢Ô¡¢ÈÕ£º
<%@ page import="java.util.Date"%>
<%
Date myDate = new Date();
int thisYear = myDate.getYear() + 1900;//thisYear = 2003
int thisMonth = myDat ......