锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧美电影,97成人在线,国产在线你懂得http://www.aygfsteel.com/tiantangyoulu/zh-cnThu, 19 Jun 2025 20:38:22 GMTThu, 19 Jun 2025 20:38:22 GMT60- 灞忚斀web搴旂敤涓嬬殑jsp鏂囦歡鐨勮闂?/title>http://www.aygfsteel.com/tiantangyoulu/archive/2008/05/26/202829.html澶╁爞鏈夎礬澶╁爞鏈夎礬Mon, 26 May 2008 01:23:00 GMThttp://www.aygfsteel.com/tiantangyoulu/archive/2008/05/26/202829.htmlhttp://www.aygfsteel.com/tiantangyoulu/comments/202829.htmlhttp://www.aygfsteel.com/tiantangyoulu/archive/2008/05/26/202829.html#Feedback0http://www.aygfsteel.com/tiantangyoulu/comments/commentRss/202829.htmlhttp://www.aygfsteel.com/tiantangyoulu/services/trackbacks/202829.htmlresion錛?br />
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>defaultroot</display-name>
<servlet servlet-name="resin-jsp"
servlet-class="com.caucho.server.security.FormLoginServlet">
</servlet>
<servlet servlet-name="resin-jspx"
servlet-class="com.caucho.server.security.FormLoginServlet">
</servlet>
<servlet servlet-name="resin-xtp"
servlet-class="com.caucho.server.security.FormLoginServlet"/>
<servlet-mapping url-pattern="*.jsp" servlet-name="resin-jsp"/>
<servlet-mapping url-pattern="*.jspx" servlet-name="resin-jspx"/>
<servlet-mapping url-pattern="*.xtp" servlet-name="resin-xtp"/>
<error-page>
<error-code>500</error-code>
<location>/500.htm</location>
</error-page>
</web-app>
tomcat涓嬶細
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>defaultroot</display-name>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class></servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<!-- The mapping for the JSP servlet -->
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
<!-- The mapping for the SSI servlet -->
</web-app>

]]>- linux鐜涓嬬殑涓や釜灝忓懡浠?/title>http://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197281.html澶╁爞鏈夎礬澶╁爞鏈夎礬Tue, 29 Apr 2008 07:39:00 GMThttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197281.htmlhttp://www.aygfsteel.com/tiantangyoulu/comments/197281.htmlhttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197281.html#Feedback0http://www.aygfsteel.com/tiantangyoulu/comments/commentRss/197281.htmlhttp://www.aygfsteel.com/tiantangyoulu/services/trackbacks/197281.html
tcpdump -w 002.txt -s0 host 192.168.10.1and port 2222
鏌ョ湅鐩綍涓嬫湁澶氬皯涓枃浠?br />
find ./ -type f | wc -l

]]> - 涓涓爣鍑嗙殑java http璇鋒眰鍜屽洖搴?/title>http://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197277.html澶╁爞鏈夎礬澶╁爞鏈夎礬Tue, 29 Apr 2008 07:32:00 GMThttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197277.htmlhttp://www.aygfsteel.com/tiantangyoulu/comments/197277.htmlhttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197277.html#Feedback0http://www.aygfsteel.com/tiantangyoulu/comments/commentRss/197277.htmlhttp://www.aygfsteel.com/tiantangyoulu/services/trackbacks/197277.html
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
try
{
connection.setDoInput(true);
connection.setDoOutput(true);
{
// 鎻愪氦鐨勫唴瀹?br />
byte[] requsetContent = new byte[1024];
connection.setRequestProperty("Content-Length", Integer.toString(requsetContent.length));
OutputStream outputStream = connection.getOutputStream();
try
{
// 鍚戝杈撳叆嫻?br />
outputStream.write(requsetContent);
outputStream.flush();
}
catch (Exception ex)
{
throw ex;
}
finally
{
outputStream.close();
}
}
// 鑾峰彇HTTP鐩稿簲璇鋒眰
int responseCode = connection.getResponseCode();
String responseMessage = connection.getResponseMessage();
{
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024 * 64);
// 寰楀埌榪斿洖嫻?br />
InputStream inputStream = connection.getInputStream();
try
{
byte[] buf = new byte[1024 * 64];
int n;
while ((n = inputStream.read(buf)) >= 0)
{
baos.write(buf, 0, n);
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
inputStream.close();
}
// 鑾峰彇鍖呯殑鍐呭
byte[] responseContent = baos.toByteArray();
}
}
catch (Exception ex)
{
throw ex;
}
finally
{
connection.disconnect();
}

]]> - java1.6瀹炵幇webservice鍔熻兘http://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197264.html澶╁爞鏈夎礬澶╁爞鏈夎礬Tue, 29 Apr 2008 06:52:00 GMThttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197264.htmlhttp://www.aygfsteel.com/tiantangyoulu/comments/197264.htmlhttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197264.html#Feedback1http://www.aygfsteel.com/tiantangyoulu/comments/commentRss/197264.htmlhttp://www.aygfsteel.com/tiantangyoulu/services/trackbacks/197264.html
package rece.test;
import javax.annotation.Resource;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.WebServiceContext;
import com.sun.net.httpserver.HttpExchange;
@WebService(targetNamespace = "http://rece.test.com", serviceName = "WebServiceRece")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class WebServiceRece
{
@Resource
private WebServiceContext wsContext;
@WebMethod
public String sendZxdxSms(@WebParam(partName = "Username")String userName,
@WebParam(partName = "Password")String passWord,
@WebParam(partName = "Content")String content,
@WebParam(partName = "FromTerminalId")String fromTerminalId,
@WebParam(partName = "ToTerminalId")String toTerminalId
)
{
//鑾峰彇鎻愪氦璇鋒眰鐨処P鍦板潃
HttpExchange exchange = (HttpExchange)wsContext.getMessageContext().get("com.sun.xml.internal.ws.http.exchange");
String remortAddress = exchange.getRemoteAddress().getAddress().getHostAddress();
//鍏蜂綋瀹炵幇
return WebServiceReceImpl.getInstance().send(userName, passWord, content, fromTerminalId, toTerminalId,remortAddress);
}
}
鍦╩ain鏂規硶涓惎鍔ㄨ繖涓獁ebservice鏈嶅姟錛?br />
Endpoint.publish("http://localhost:9898/test/send.jws", new WebServiceRece());
鎵撳紑wsdl
http://localhost:9898/test/send.jws?wsdl
鐢熸垚瀹㈡埛绔?/span>
鍦ㄥ懡浠よ涓嬭繍琛?/span>wsimport –keep http://localhost:9898/test/send.jws?wsdl錛屽嵆鍙湪褰撳墠鐩綍鐢熸垚瀹㈡埛绔紝-keep琛ㄧず淇濈暀婧愭枃浠訛紝濡傛灉娌℃湁-keep錛屽垯鍙敓鎴?/span>class鏂囦歡

]]> - linux鍚姩oracle鍛戒護http://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197251.html澶╁爞鏈夎礬澶╁爞鏈夎礬Tue, 29 Apr 2008 06:38:00 GMThttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197251.htmlhttp://www.aygfsteel.com/tiantangyoulu/comments/197251.htmlhttp://www.aygfsteel.com/tiantangyoulu/archive/2008/04/29/197251.html#Feedback0http://www.aygfsteel.com/tiantangyoulu/comments/commentRss/197251.htmlhttp://www.aygfsteel.com/tiantangyoulu/services/trackbacks/197251.htmlsu - oracle
sqlplus /nolog
connect /as sysdba
startup
lsnrctl start

]]> - resin鏈嶅姟鍣ㄥ睆钄芥枃浠跺垪琛ㄧ殑鏂規硶http://www.aygfsteel.com/tiantangyoulu/archive/2008/01/18/176296.html澶╁爞鏈夎礬澶╁爞鏈夎礬Fri, 18 Jan 2008 09:43:00 GMThttp://www.aygfsteel.com/tiantangyoulu/archive/2008/01/18/176296.htmlhttp://www.aygfsteel.com/tiantangyoulu/comments/176296.htmlhttp://www.aygfsteel.com/tiantangyoulu/archive/2008/01/18/176296.html#Feedback0http://www.aygfsteel.com/tiantangyoulu/comments/commentRss/176296.htmlhttp://www.aygfsteel.com/tiantangyoulu/services/trackbacks/176296.html3.0鐨勫睆钄芥柟寮忥細
鎵撳紑../conf/resin.conf鏂囦歡
<!-- - Servlet to use for directory display.
- 鎶婁互涓嬪唴瀹瑰垹闄わ紝鍙互灞忚斀WEB鐩綍緇撴瀯.
-->
<servlet servlet-name="directory" servlet-class="com.caucho.servlets.DirectoryServlet"/>
2.0鐨勯厤緗細
鎵撳紑../conf/resin.conf鏂囦歡
鍦?lt;web-app>
...
</web-app>
涔嬮棿鍔犲叆濡備笅閰嶇疆錛?
<directory-servlet id="false"/>
resin鏈嶅姟涓嬭闂潤鎬乭tml欏甸潰鏃墮粯璁ょ紪鐮佹諱負iso-8859-1鐨勯棶棰樿В鍐沖姙娉曪細
淇敼resin-3.1.0/conf/app-default.xml錛屼慨鏀笷ileServlet閰嶅埗鍙傛暟
<servlet servlet-name="resin-file" servlet-class="com.caucho.servlets.FileServlet">
<init>
<character-encoding>gb2312</character-encoding>
</init>
</servlet>
鍚姩ok

]]>
主站蜘蛛池模板:
五峰|
五家渠市|
米易县|
清原|
伊宁市|
中方县|
方山县|
盐城市|
彭山县|
大埔区|
德惠市|
陆河县|
乌恰县|
麻阳|
读书|
安国市|
建昌县|
赣榆县|
阳东县|
安庆市|
浦城县|
侯马市|
杭锦后旗|
牙克石市|
博乐市|
南充市|
九龙坡区|
罗江县|
隆尧县|
弥勒县|
河南省|
张北县|
江北区|
墨玉县|
林州市|
玛纳斯县|
南皮县|
永康市|
丹棱县|
米易县|
筠连县|