package com.ibeifeng.action; import java.util.Map; import com.ibeifeng.po.BlogInfo; import com.ibeifeng.service.BlogInfoService; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; public class EditBlogInfo extends ActionSupport { private String blogtitle; private String idiograph; private BlogInfoService blogInfoService; public BlogInfoService getBlogInfoService() { return blogInfoService; } public void setBlogInfoService(BlogInfoService blogInfoService) { this.blogInfoService = blogInfoService; } public String getBlogtitle() { return blogtitle; } public void setBlogtitle(String blogtitle) { this.blogtitle = blogtitle; } public String getIdiograph() { return idiograph; } public void setIdiograph(String idiograph) { this.idiograph = idiograph; } public String execute() throws Exception { // //获得request // HttpServletRequest request = ServletActionContext.getRequest(); // //获得session // HttpSession session =request.getSession(); // //获得username // String username = (String) session.getAttribute("username"); Map session = ActionContext.getContext().getSession(); String username = (String) session.get("username"); BlogInfo blogInfo = new BlogInfo(); //设置用户名 blogInfo.setUsername(username); //设置博客标题 blogInfo.setBlogtitle(blogtitle); //设置个性签名 blogInfo.setIdiograph(idiograph); //调用业务逻辑组件来完成设置 blogInfoService.setBlogInfo(blogInfo); return this.SUCCESS; } }
最近下载更多
aaaaaaa3333 LV1
2022年5月18日
SOLEIL. LV3
2021年6月19日
yyyyyyuuuuuu LV1
2021年2月14日
无情先生3333 LV2
2020年12月29日
skook7 LV2
2020年7月26日
lwp011 LV27
2020年7月7日
1515355665 LV7
2020年7月2日
王步庆 LV9
2020年5月14日
小陆啊 LV2
2020年3月8日
12432423 LV2
2019年12月18日
最近浏览更多
xiaopengzep LV1
3月25日
WBelong LV7
2023年12月20日
最代码的苏拉
2023年9月22日
暂无贡献等级
周敏国 LV9
2023年8月21日
Tomcat80 LV4
2023年6月25日
微信网友_6523730516185088
2023年6月17日
暂无贡献等级
陆程江 LV2
2023年5月28日
yzshabzbbdvw LV4
2023年5月15日
3516569014 LV5
2023年5月7日
Ali200930 LV2
2023年3月28日