View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2014年6月26日 下午1:13:17
4    */
5   package gboat2.base.view.jsp;
6   
7   import gboat2.base.view.GboatViewUtil;
8   import gboat2.base.view.components.Attach;
9   import gboat2.base.view.components.AttachSequence;
10  
11  import javax.servlet.http.HttpServletRequest;
12  import javax.servlet.http.HttpServletResponse;
13  
14  import org.apache.struts2.components.Component;
15  import org.apache.struts2.views.jsp.ui.AbstractUITag;
16  
17  import com.opensymphony.xwork2.util.ValueStack;
18  
19  /**
20   * @see Attach
21   * @date 2014年6月26日
22   * @author <a href="mailto:[email protected]">何明旺</a>
23   * @since 3.0.0-SNAPSHOT
24   */
25  public class AttachSequenceTag extends AbstractUITag {
26  
27      private static final long serialVersionUID = 1904115256861121844L;
28  
29      protected String attachMap;
30      protected String downloadUrl;
31  
32      @Override
33      public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
34          return new AttachSequence(stack, req, res);
35      }
36      
37      @Override
38      protected void populateParams() {
39          super.populateParams();
40          GboatViewUtil.populateParams(this, component);
41      }
42      
43      public void setAttachMap(String attachMap) {
44          this.attachMap = attachMap;
45      }
46  
47      public void setDownloadUrl(String downloadUrl) {
48          this.downloadUrl = downloadUrl;
49      }
50  
51  }