📄 postaction.java.bak
字号:
public class postAction 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");
topicForm topic=(topicForm)actionForm;
String title=topic.getTopicTitle();
String content=topic.getTopicContent();
String author=user.getName();
topic.setAuthor(author);
DBTopicFactory fa=new DBTopicFactory();
fa.createTopic(topic);
return actionMapping.findForward("post");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -