| Line 55... |
Line 55... |
| 55 |
String[] items = pageTitle.split("\\|");
|
55 |
String[] items = pageTitle.split("\\|");
|
| 56 |
String productName = items[0] != null ? items[0].trim() : null;
|
56 |
String productName = items[0] != null ? items[0].trim() : null;
|
| 57 |
String productUrl = "";
|
57 |
String productUrl = "";
|
| 58 |
String baseUrl = "";
|
58 |
String baseUrl = "";
|
| 59 |
|
59 |
|
| 60 |
if (request.getServerName().equals("localhost")) {
|
- |
|
| 61 |
productUrl = URLEncoder.encode("http://shop2020.in" + request.getServletPath(), "UTF-8");
|
- |
|
| 62 |
|
- |
|
| 63 |
} else {
|
- |
|
| 64 |
productUrl = URLEncoder.encode(request.getRequestURL().toString(), "UTF-8");
|
60 |
productUrl = URLEncoder.encode(request.getRequestURL().toString(), "UTF-8");
|
| 65 |
baseUrl = URLEncoder.encode("http://saholic.com", "UTF-8");
|
61 |
baseUrl = URLEncoder.encode("http://saholic.com", "UTF-8");
|
| 66 |
}
|
- |
|
| 67 |
System.out.println("*" + request.getServerName() + "* | " + productUrl);
|
62 |
System.out.println(request.getRequestURL());
|
| 68 |
|
63 |
|
| 69 |
htmlSnippets.put("PRODUCT_SUMMARY", pageLoader.getProductSummaryHtml(productId));
|
64 |
htmlSnippets.put("PRODUCT_SUMMARY", pageLoader.getProductSummaryHtml(productId));
|
| 70 |
htmlSnippets.put("PRODUCT_ID", productId + "");
|
65 |
htmlSnippets.put("PRODUCT_ID", productId + "");
|
| 71 |
htmlSnippets.put("PRODUCT_NAME", productName);
|
66 |
htmlSnippets.put("PRODUCT_NAME", productName);
|
| 72 |
htmlSnippets.put("PRODUCT_URL", productUrl);
|
67 |
htmlSnippets.put("PRODUCT_URL", productUrl);
|