package com.sanqing.action; import java.util.Map; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; import com.sanqing.po.BlogInfo; import com.sanqing.service.BlogInfoService; public class GetBlogInfo extends ActionSupport { private BlogInfoService blogInfoService; public BlogInfoService getBlogInfoService() { return blogInfoService; } public void setBlogInfoService(BlogInfoService blogInfoService) { this.blogInfoService = blogInfoService; } public String execute() throws Exception { //获得usrname Map session = ActionContext.getContext().getSession(); String username = (String) session.get("username"); //通过业务逻辑组件来查询 BlogInfo bloginfo = blogInfoService.getBlogInfo(username); if(bloginfo != null) { session.put("blogtitle", bloginfo.getBlogtitle()); session.put("idiograph", bloginfo.getIdiograph()); } return this.SUCCESS; } }
最近下载更多
huhansan LV10
2023年11月5日
陆程江 LV2
2023年5月23日
Violetya LV1
2023年5月19日
123123asdsada LV1
2022年5月25日
wanglinddad LV54
2022年4月13日
and123456 LV11
2022年2月7日
2136237322 LV1
2021年12月15日
cloisonne LV2
2021年12月11日
1287704475 LV2
2021年12月8日
李晓珂 LV2
2021年12月4日