- 浏览: 15967 次
- 性别:
- 来自: 常德
最新评论
-
binjoo:
aabbccaabbccaabbccaabbccaabbcc
java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 1
文章列表
首先,创建一个List<User>对象userList。再将从数据库中查询的所有对象集合赋给userList。最后,进行转化。
List<User> userList = new ArrayList<User>();
userList = UserFactory.getUserEbi().selectAllUser();
User[] um= userList.toArray(new User[userList.size()]);
1. showCurrentTime.jsp
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
& ...
<table width="50%" style="border: 1px solid #20B2AA">
</table>
整体边框:border: 1px solid #20B2AA
1px为边框大小,solid 为实线边框,#20B2AA为颜色
只给某一边加边框:
右边框: border-right-color:#20B2AA;
左边框: border-left-color:#20B2AA;
上边框: border-top-color:#20B2AA;
下边框: border-bottom-color:# ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>Untitled Document</title> </head> & ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
</head& ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>随机显示图片</title>
</head>
<sc ...
java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 1
代码如下:
public static void deleteEmpInfo(int empno){
StringBuffer sqlStr = new StringBuffer("delete from emp where empno = ? ");
try{
conn = DBconn.getConn();
pstmt = conn.prepareStatement(sqlStr.toString());
int t = pstmt. ...
package com.ibm.beans;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
public class TestWriteFile2 {
public static void writeFile(String filePathAndName,String fileContent){
File f = new File(filePathAndName);
try{
if(!f.exists()){
f.getParentFile().mkdirs ...
package com.ibm.beans;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
public class TestWriteFile {
public static void writeFile(String filePathAndName,String fileContent){
File f = new File(file ...
package com.ibm.beans;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
public class TestReadFile {
public static String readFile(String filePathAndName){
String fileContent = "";
File f ...