Subversion Repositories SmartDukaan

Rev

Rev 2145 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2145 Rev 2425
Line 72... Line 72...
72
		@Action("/lg"),
72
		@Action("/lg"),
73
		@Action("/htc"),
73
		@Action("/htc"),
74
		@Action("/motorola"),
74
		@Action("/motorola"),
75
		@Action("/dell"),
75
		@Action("/dell"),
76
		@Action("/apple"),
76
		@Action("/apple"),
-
 
77
		@Action("/android"),
77
		
78
		
78
		@Action("/brand")
79
		@Action("/brand")
79
	})
80
	})
80
	 
81
	 
81
    public String index() throws SecurityException, IOException {
82
    public String index() throws SecurityException, IOException {
Line 114... Line 115...
114
    	String[] fqrys = this.request.getParameterValues("fq");
115
    	String[] fqrys = this.request.getParameterValues("fq");
115
 
116
 
116
    	url = "?";
117
    	url = "?";
117
    	
118
    	
118
    	
119
    	
-
 
120
    	if(brandName.equals("Android")){
-
 
121
    		query = "android";	
119
    	    	
122
    	}else{
120
    	query = "*";
123
    		query = "*";
-
 
124
    	}
121
    	
125
    	
122
    	int length = 1;
126
    	int length = 1;
123
    	
127
    	
124
    	if(fqrys!= null){
128
    	if(fqrys!= null){
125
    		length += fqrys.length;
129
    		length += fqrys.length;
126
    	}
130
    	}
127
    	
131
    	
-
 
132
    	String[] newfqrys;
-
 
133
    	if(brandName.equals("Android")){
-
 
134
    		newfqrys = new String[length];
-
 
135
    	}else{
-
 
136
    		newfqrys = new String[length+1];
-
 
137
    	}
128
    	
138
    	
-
 
139
    	if(brandName.equals("Android")){
129
    	String[] newfqrys = new String[length+1];
140
    		newfqrys[0] = "F_50010:" + "Mobile Phones";
130
    	
141
    	}else{
131
    	newfqrys[0] = "F_50001:" + brandName;
142
    		newfqrys[0] = "F_50001:" + brandName;
-
 
143
    		newfqrys[length] = "F_50010:" + "Mobile Phones";
132
    	
144
    	}
133
    	
145
    	
134
    	String urlCrumb = url;
146
    	String urlCrumb = url;
135
    	
147
    	
136
    	this.crumbs = new ArrayList<String[]>();
148
    	this.crumbs = new ArrayList<String[]>();
137
    	List<String> arrList = Arrays.asList(facetDefIDs);
149
    	List<String> arrList = Arrays.asList(facetDefIDs);
Line 155... Line 167...
155
    		log.info("acrumb=" + Arrays.toString(acrumb));
167
    		log.info("acrumb=" + Arrays.toString(acrumb));
156
    		this.crumbs.add(acrumb);
168
    		this.crumbs.add(acrumb);
157
 
169
 
158
    	}
170
    	}
159
    	
171
    	
160
    	newfqrys[length] = "F_50010:" + "Mobile Phones";
172
    	
161
    	
173
    	
162
		url = urlCrumb;
174
		url = urlCrumb;
163
    	    	
175
    	    	
164
    	if(this.request.getParameter("page") != null){
176
    	if(this.request.getParameter("page") != null){
165
    		this.page = Long.parseLong(this.request.getParameter("page"));
177
    		this.page = Long.parseLong(this.request.getParameter("page"));