Subversion Repositories SmartDukaan

Rev

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

Rev 8322 Rev 8324
Line 77... Line 77...
77
	 */
77
	 */
78
    // GET /query
78
    // GET /query
79
 
79
 
80
    public String index() throws Exception {
80
    public String index() throws Exception {
81
    	
81
    	
82
    	log.info("this.request=" + this.request);
82
    	log.info("this.request.param=" + this.request.getParameterMap());
83
    	
83
    	
84
    	//url = this.request.getRequestURL();
-
 
85
		query = this.request.getParameter("q");
84
		query = this.request.getParameter("q");
86
		url = "q="+ query;
85
		url = "q="+ URLEncoder.encode(query, "UTF-8");
87
 
86
 
88
 
87
 
89
		if(query.trim().isEmpty()){
88
		if(query.trim().isEmpty()){
90
				location = "/";
89
				location = "/";
91
				return "redirect";
90
				return "redirect";