Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21999 rajender 1
package in.shop2020.dtrapi.controllers;
2
 
3
import java.util.Date;
4
 
5
import org.json.JSONObject;
6
 
7
public class UploadController extends BaseController{
8
 
9
	private String uplaodReference = "";
10
 
11
	public String index(){
12
		return "fofo-form";
13
	}
14
	  public String create() {
15
		  return "index";
16
	  }
17
 
18
 
19
	public String getUplaodReference() {
20
		return uplaodReference;
21
	}
22
	public void setUplaodReference(String uplaodReference) {
23
		this.uplaodReference = uplaodReference;
24
	}
25
 
26
 
27
	public String getResultJson() {
28
		try {
29
		 JSONObject obj = new JSONObject();
30
 
31
		 obj.accumulate("result", new Date().getTime() + "");
32
		 return obj.toString();
33
		} catch (Exception e ){
34
			e.printStackTrace();
35
			return "";
36
		}
37
	}
38
 
39
 
40
}