dsfdfdsfd
package com.zq.blog.action; import org.apache.struts2.convention.annotation.Action; import com.zq.blog.service.ArticleService; public class ArticleAction extends BaseAction{ private String searchstr; private ArticleService articleService; public ArticleAction(){ this.articleService = new ArticleService(); } @Action("initblog") public void initBlog(){ String[] strs = searchstr.split("="); long blogxh = Long.parseLong(strs[1]); this.write(articleService.initBlog(blogxh)); } public String getSearchstr() { return searchstr; } public void setSearchstr(String searchstr) { this.searchstr = searchstr; } }原文链接:https://www.f2er.com/javaschema/284535.html