Subversion Repositories SmartDukaan

Rev

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

Rev 20541 Rev 20549
Line 1... Line 1...
1
package com.hotspotstore.controllers;
1
package com.hotspotstore.controllers;
2
 
2
 
3
import java.io.IOException;
3
import java.io.IOException;
4
 
4
 
-
 
5
import org.json.JSONObject;
-
 
6
 
5
import com.hotspotstore.services.SendGridMail;
7
import com.hotspotstore.services.SendGridMail;
6
import com.hotspotstore.services.VerifyRecaptcha;
8
import com.hotspotstore.services.VerifyRecaptcha;
-
 
9
import com.hotspotstore.storage.Mongo;
7
 
10
 
8
 
11
 
9
public class ContactUsController extends BaseController{
12
public class ContactUsController extends BaseController{
10
 
13
 
11
	/**
14
	/**
12
	 * 
15
	 * 
13
	 */
16
	 */
14
	private static final long serialVersionUID = 1L;
17
	private static final long serialVersionUID = 1L;
15
	private String result;
18
	private String result;
16
	private String name;
19
	private String name;
-
 
20
	private String id;
-
 
21
 
-
 
22
	public String getId() {
-
 
23
		return id;
-
 
24
	}
-
 
25
 
-
 
26
	public void setId(String id) {
-
 
27
		this.id = id;
-
 
28
	}
17
 
29
 
18
	public String getName() {
30
	public String getName() {
19
		return name;
31
		return name;
20
	}
32
	}
21
 
33
 
Line 75... Line 87...
75
	private String city;
87
	private String city;
76
	private String state;
88
	private String state;
77
	private String mobile;
89
	private String mobile;
78
	private String category;
90
	private String category;
79
	private String msg;
91
	private String msg;
-
 
92
	private String productName;
-
 
93
 
-
 
94
	public String getProductName() {
-
 
95
		return productName;
-
 
96
	}
-
 
97
 
-
 
98
	public void setProductName(String productName) {
-
 
99
		this.productName = productName;
-
 
100
	}
80
 
101
 
81
	public String getResult() {
102
	public String getResult() {
82
		return result;
103
		return result;
83
	}
104
	}
84
 
105
 
85
	public void setResult(String result) {
106
	public void setResult(String result) {
86
		this.result = result;
107
		this.result = result;
87
	}
108
	}
88
 
109
 
89
	public String index(){
110
	public String index(){
-
 
111
		try {
-
 
112
			JSONObject hotspotEntity = Mongo.getHotspotEntity(Long.valueOf(id));
-
 
113
			productName = hotspotEntity.getString("title");
-
 
114
		} catch (Exception e) {
-
 
115
			System.out.println(e);
-
 
116
		}
90
		return "index";
117
		return "index";
91
	}
118
	}
92
 
119
 
93
	public String create(){
120
	public String create(){
94
		try {
121
		try {