postaction.java.bak

来自「bbs struts」· BAK 代码 · 共 23 行

BAK
23
字号
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 + =
减小字号Ctrl + -
显示快捷键?