public static void main(String[] args) {
String str1="abc012";
String str4="abc";
for(int i=0;i<3;i++){
str4 +=i;
System.out.println(str4==str1);
}
}
程序执行结果……继续阅读 »
9年前 (2016-03-18) 970浏览
0个赞
public static void downFile() {
// ftp登录用户名
String userName = "ssas";
String userPassword = "sasasa";
// ftp地址:直接IP地址
……继续阅读 »
9年前 (2016-03-18) 1695浏览
0个赞
求指点,下面是完整代码
index.jsp:
<body>
<h1>填写表单</h1><hr>
<form action=”addUser.action” method=”post”>
id:<input type=”textR……继续阅读 »
9年前 (2016-03-18) 1183浏览
0个赞
rt,不要用js,在jsp页面用java代码实现
解决方案
50
<%
%>
50
<%
String retContent = "";
try{
String url = "url";
// 打开和URL之间的连接
URLConnection connection = realUrl.openConnection();
/……继续阅读 »
9年前 (2016-03-18) 2512浏览
0个赞
<%
int pageNo = 0;
pageNo–;
if(pageNo<=0){
pageNo = 1;
outofBounds();//报错
}
%>
<script language=”JavaScript1.2″ type=”text/javascript”>……继续阅读 »
9年前 (2016-03-18) 1385浏览
0个赞
这是action返回值部分的代码
if(level==2)
return “manage”;
return SUCCESS;
这是Struts.xml的代码
<?xml version=”1.0″ encoding=”UTF-8″ ?>
<!DOCTYPE struts……继续阅读 »
9年前 (2016-03-18) 1410浏览
0个赞
org.springframework.beans.factory.BeanCreationException: Error creating bean with name “applyInfoService”: Injection of autowired dependencies failed; nested exception ……继续阅读 »
9年前 (2016-03-18) 1673浏览
0个赞
// Java 类文件
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.In……继续阅读 »
9年前 (2016-03-18) 4733浏览
1个赞
2014-10-9 18:34:56 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.lgm.common.web.WebConte……继续阅读 »
9年前 (2016-03-18) 1257浏览
0个赞