postaction.java.bak
来自「bbs struts」· BAK 代码 · 共 22 行
BAK
22 行
public class TopicAction extends Action {
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception{
/**@todo: complete the business logic here, this is just a skeleton.*/
HttpSession session = httpServletRequest.getSession();
Userbean user=session.getAttribute("user");
//logon?
TopicAcionForm topic=(TopicAcitionForm)actionForm;
String title=topic.getTopicTitle();
String content=topic.getTopicContent();
String author=user.getName();
topic.setAuthor(author);
DBTopicFactory fa=new DBTopicFactory();
fa.createTopic(topic);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?