View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2014年4月9日 下午6:54:06
4    */
5   package gboat2.base.view.jsp;
6   
7   import gboat2.base.view.GboatViewUtil;
8   import gboat2.base.view.components.PageUrl;
9   
10  import javax.servlet.http.HttpServletRequest;
11  import javax.servlet.http.HttpServletResponse;
12  
13  import org.apache.struts2.components.Component;
14  import org.apache.struts2.views.jsp.ui.AbstractUITag;
15  
16  import com.opensymphony.xwork2.util.ValueStack;
17  
18  /**
19   * 在JSP页面输出当前页面路径的注释
20   * @author sunpf
21   * @since 3.0
22   * @date 2014-7-1
23   */
24  public class PageUrlTag extends AbstractUITag {
25  
26      private static final long serialVersionUID = -1;
27  
28      @Override
29      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
30          return new PageUrl(stack, req, res);
31      }
32  
33      @Override
34      protected void populateParams() {
35          super.populateParams();
36          GboatViewUtil.populateParams(this, component);
37      }
38  
39     
40  }