JSP ÖÐurlÖÐÎÄÂÒÂë½â¾ö·½°¸
pager.setActionName("../servlet/GetBookList?bookname="+booktemp.getBookName()
+"&author="+booktemp.getAuthor()+"&publish="+booktemp.getPublish()+"&");
<a
href="<c:out value="${pager.actionName}"/>pageNo=<c:out value="${pager.pageNo+1}"/>">ÏÂÒ»Ò³</a>
URLÖÐÒª´«µÝÈý¸ö²ÎÊý bookName author publish ¶¼ÊÇÖÐÎÄ×Ö·û
Èç¹ûÒª·â×°³ÉÒ»¸ö¶ÔÏó£¬ÊÇû·¢Í¨¹ýurl´«µÝµÄ
ÓÚÊÇÎÒ°ÑÕâÈý¸ö²ÎÊý¶¼·ÅÔÚurlÖÐ
µ«ÔÚdebug¹ý³ÌÖз¢ÏÖÖÐÎÄ×Ö·ûÈ«³ÆÁËÂÒÂë¡£
²»ÂÛÊÇ str.getByte("utf-8") »¹ÊÇFilter ¶¼Ã»·¨½â¾öÎÊÌâ
×îºóÔÚtomcatµÄserver.xmlÖÐ ×öÈçÏÂÐ޸ģº
<Connector port="8280" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" racceptCount="100"
disableUploadTimeout="true" URIEncoding="utf-8"
/>
ÎÊÌâ½â¾ö£¡
Ïà¹ØÎĵµ£º
ʹÓÃdiasplaytag×é¼þ¡£
ʹÓÃmysql5, ÓиöÊý¾Ý±íuser,×Ö¶ÎÓÐid, username, password¡£
ʹÓÃdisplaytagÐèµ¼Èëdisplaytag-1.1.jar£¬ºÍ
commons-logging
commons-lang
commons-collections
commons-beanutils
log4j
itext (optional, for pdf/rtf export)
È»ºóÔÚJSPÒ³ÃæÖзÅÈë<%@ taglib uri="http://display ......
ActionContext.getContext().getSession().put("login", "1");
<%
String flag=(String)session.getAttribute("login");
if(flag==null)
response.sendRedirect("login.jsp");
%> ......
½øÈë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ÎļþÃüÃû¿Õ¼ ......
Ò»¡¢jspÁ¬½ÓOracle8/8i/9iÊý¾Ý¿â£¨ÓÃthinģʽ£©
testoracle.jspÈçÏ£º
< %@ page contentType= "text/html;charset=gb2312 "% >
< %@ page import= "java.sql.* "% >
< html >
< ......
¡¡¡¡ÏµÍ³»·¾³£ºLinux 5.0 AS 64λ
¡¡¡¡²½Ö裺
¡¡¡¡1¡¢ÏÂÔØapache-tomcat-5.5.23.tarºÍjdk-1_5_0_12-linux-i586.bin²¢´æ·ÅÔÚ/usr/localÎļþ¼ÐÏ£»
¡¡¡¡2¡¢°²×°jdk
¡¡¡¡[root@localhost local]#chmod 775 jdk-1_5_0_12-linux-i586.bin '·Ç±ØÐ룬ҪÊÇÖ±½ÓÔËÐÐʱÌáʾȨÏÞ²»¹»Ê±¸Ä±äȨÏÞ£»
¡¡¡¡[root@localhost local]#./jd ......