1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.fatwire.gst.foundation.taglib;
17
18 import java.io.IOException;
19
20 import javax.servlet.jsp.JspException;
21
22 import COM.FutureTense.Interfaces.ICS;
23
24 import com.fatwire.gst.foundation.tagging.AssetTaggingService;
25 import com.fatwire.gst.foundation.tagging.TagUtils;
26 import com.fatwire.gst.foundation.tagging.db.TableTaggingServiceImpl;
27
28
29
30
31
32
33
34
35
36 public final class TaggedAssetsTag extends GsfSimpleTag {
37 private String tag = null;
38 private String list = null;
39
40
41
42
43
44
45 @Override
46 public void doTag() throws JspException, IOException {
47
48 final ICS ics = getICS();
49 final AssetTaggingService svc = new TableTaggingServiceImpl(ics);
50 getJspContext().setAttribute(list, svc.lookupTaggedAssets(TagUtils.asTag(tag)));
51 super.doTag();
52 }
53
54
55
56
57 public void setList(final String list) {
58 this.list = list;
59 }
60
61 public void setTag(final String tag) {
62 this.tag = tag;
63 }
64
65 }