0x1:前言
前面搭建struts就不说了,大家都能成功完成。
0x2:Model
这里我们需要一个Model类来接收
<span style="font-size:10px;font-weight: normal;">package com.model;
public class BlogContent {
private int id;
private String title;
private String content;
public BlogContent(int id, String title, String content) {
super();
this.id = id;
this.title = title;
this.content = content;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}</span><span style="color:#ff6666;font-size:18px;">
</span>