Subversion Repositories SmartDukaan

Rev

Rev 20550 | Rev 20558 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20550 Rev 20552
Line 15... Line 15...
15
	 * 
15
	 * 
16
	 */
16
	 */
17
	private static final long serialVersionUID = 1L;
17
	private static final long serialVersionUID = 1L;
18
	private String result;
18
	private String result;
19
	private String name;
19
	private String name;
20
	private String id;
20
	private String eid;
21
 
21
 
22
	public String getId() {
22
	public String getEid() {
23
		return id;
23
		return eid;
24
	}
24
	}
25
 
25
 
26
	public void setId(String id) {
26
	public void setEid(String eid) {
27
		System.out.println("id "+id);
-
 
28
		this.id = id;
27
		this.eid = eid;
29
	}
28
	}
30
 
29
 
31
	public String getName() {
30
	public String getName() {
32
		return name;
31
		return name;
33
	}
32
	}
Line 108... Line 107...
108
		this.result = result;
107
		this.result = result;
109
	}
108
	}
110
 
109
 
111
	public String index(){
110
	public String index(){
112
		try {
111
		try {
113
			JSONObject hotspotEntity = Mongo.getHotspotEntity(Long.valueOf(id));
112
			JSONObject hotspotEntity = Mongo.getHotspotEntity(Long.valueOf(eid));
114
			productName = hotspotEntity.getString("title");
113
			productName = hotspotEntity.getString("title");
115
		} catch (Exception e) {
114
		} catch (Exception e) {
116
			System.out.println(e);
115
			System.out.println(e);
117
		}
116
		}
118
		return "index";
117
		return "index";