代码运行正常,但是在浏览器地址栏输人http://localhost:8888/MicroChat//InitTalkServlet.action后,浏览器页面却显示一片乱码
2017-02-07
加入条件查询之后找不到列表的 试试在dao中加入以下代码
if(command != null){
command = command.trim();
}
if(description != null){
description = description.trim();
}
if(command != null){
command = command.trim();
}
if(description != null){
description = description.trim();
}
2017-02-06
CREATE TABLE command_content(
[ID] [INT] IDENTITY(1,1) CONSTRAINT PK_C_ID PRIMARY KEY NOT NULL,
[CONTENT] [VARCHAR](2048) NULL,
[COMMAND_ID] [INT] CONSTRAINT FK_C_ID FOREIGN KEY(COMMAND_ID) REFERENCES command(ID) NULL
)
[ID] [INT] IDENTITY(1,1) CONSTRAINT PK_C_ID PRIMARY KEY NOT NULL,
[CONTENT] [VARCHAR](2048) NULL,
[COMMAND_ID] [INT] CONSTRAINT FK_C_ID FOREIGN KEY(COMMAND_ID) REFERENCES command(ID) NULL
)
2017-02-06
SQLSERVICE:
CREATE TABLE command(
[ID] [INT] IDENTITY(1,1) CONSTRAINT PK_ID PRIMARY KEY NOT NULL,
[NAME] [VARCHAR](16) NULL,
[DESCRIPTION] [VARCHAR](32) NULL
)
CREATE TABLE command(
[ID] [INT] IDENTITY(1,1) CONSTRAINT PK_ID PRIMARY KEY NOT NULL,
[NAME] [VARCHAR](16) NULL,
[DESCRIPTION] [VARCHAR](32) NULL
)
2017-02-06