锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
subclipse - http://subclipse.tigris.org/update
]]>
Tomcat鐨刢lass鍔犺澆鐨勪紭鍏堥『搴忎竴瑙?nbsp;
1.鏈鍏堟槸$JAVA_HOME/jre/lib/ext/涓嬬殑jar鏂囦歡銆?nbsp;
2.鐜鍙橀噺CLASSPATH涓殑jar鍜宑lass鏂囦歡銆?nbsp;
3.$CATALINA_HOME/common/classes涓嬬殑class鏂囦歡銆?nbsp;
4.$CATALINA_HOME/commons/endorsed涓嬬殑jar鏂囦歡銆?nbsp;
5.$CATALINA_HOME/commons/i18n涓嬬殑jar鏂囦歡銆?nbsp;
6.$CATALINA_HOME/common/lib 涓嬬殑jar鏂囦歡銆?nbsp;
錛圝DBC椹卞姩涔嬬被鐨刯ar鏂囦歡鍙互鏀懼湪榪欓噷錛岃繖鏍峰氨鍙互閬垮厤鍦╯erver.xml閰嶇疆濂芥暟鎹簮鍗村嚭鐜版壘涓嶅埌JDBC Driver鐨勬儏鍐點(diǎn)傦級(jí)
7.$CATALINA_HOME/server/classes涓嬬殑class鏂囦歡銆?nbsp;
8.$CATALINA_HOME/server/lib/涓嬬殑jar鏂囦歡銆?nbsp;
9.$CATALINA_BASE/shared/classes 涓嬬殑class鏂囦歡銆?nbsp;
10.$CATALINA_BASE/shared/lib涓嬬殑jar鏂囦歡銆?nbsp;
11.鍚勮嚜鍏蜂綋鐨剋ebapp /WEB-INF/classes涓嬬殑class鏂囦歡銆?nbsp;
12.鍚勮嚜鍏蜂綋鐨剋ebapp /WEB-INF/lib涓嬬殑jar鏂囦歡銆?/p>
]]>
I know how to send by jquery post method $.post("test.php", { name: "John", time: "2pm" } );
but what if my form field name is array
<input type=text name="n1[]" id="n1[]" value='12345"> <input type=text name="n1[]" id="n1[]" value="14454">
how to send these 2 field value send to url by jquery post method?
You can pass in an array as a value in the object:
{name: 'John', 'nl[]': ['12345', '14454']}
(This is documented at ajax but also works for post.)
var fields = $(":input").serializeArray(); $.post("test.php",fields);
from:http://stackoverflow.com/questions/1656267/how-to-send-multi-field-value-by-jquery-post
Few notes based on the following user posts:
鏈変互涓嬪嚑縐嶈В鍐蟲柟娉?
1. Blank lines (絀虹櫧琛?:
Make sure no blank line after <?php ... ?> of the calling php script.
媯(gè)鏌ユ湁<?php ... ?> 鍚庨潰娌℃湁絀虹櫧琛岋紝鐗瑰埆鏄痠nclude鎴栬卹equire鐨勬枃浠躲備笉灝戦棶棰樻槸榪欎簺絀虹櫧琛屽鑷寸殑銆?/span>
2. Use exit statement (鐢╡xit鏉ヨВ鍐?:
Use exit after header statement seems to help some people
鍦╤eader鍚庡姞涓奺xit();
header ("Location: xxx");
exit();
3. PHP has this annoying problem, if your HTML goes before any PHP code or any header modification before redirecting to certain page, it'll said "Warning: Cannot modify header information - headers already sent by ...." Basically anytime you output to browser, the header is set and cannot be modified. So two ways to get around the problem:
3a. Use Javascript (鐢↗avascript鏉ヨВ鍐?:
<? echo "<script> self.location(\"file.php\");</script>"; ?>
Since it's a script, it won't modify the header until execution of Javascript.
鍙互鐢↗avascript鏉ヤ唬鏇縣eader銆備絾鏄笂闈㈢殑榪欐浠g爜鎴戞病鏈夋墽琛屾垚鍔?.. 鍙﹀闇瑕佹敞鎰忥紝閲囩敤榪欑鏂規(guī)硶闇瑕佹祻瑙堝櫒鏀寔Javascript.
3b. Use output buffering (鐢ㄨ緭鍑虹紦瀛樻潵瑙e喅):
<?php ob_start(); ?>
... HTML codes ...
<?php
... PHP codes ...
header ("Location: ....");
ob_end_flush();
?>
This will save the output buffer on server and not output to browser yet, which means you can modify the header all you want until the ob_end_flush() statement. This method is cleaner than the Javascript since Javascript method assumes the browser has Javascript turn on. However, there are overhead to store output buffer on server before output, but with modern hardware I would imagine it won't be that big of deal. Javascript solution would be better if you know for sure your user has Javascript turn on on their browser.
灝卞儚涓婇潰鐨勪唬鐮侀偅鏍鳳紝榪欑鏂規(guī)硶鍦ㄧ敓鎴愰〉闈㈢殑鏃跺欑紦瀛橈紝榪欐牱灝卞厑璁稿湪杈撳嚭head涔嬪悗鍐嶈緭鍑篽eader浜?jiǎn)銆?br />
鈥斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺斺?br />
緇撴灉鏈鍚庤繕鏄繖涓棶棰橈細(xì)
鍘熸潵鏄痯hp.ini閲岄潰鐨勯厤緗嚭浜?jiǎn)闂锛宱utput_buffering鍙傛暟榛樿涓簅ff鐨勶紝鐜板湪灝嗗畠璁句負(fù)”on”灝憋集錛簡(jiǎn)銆?/span>