<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8" %> <% String region = request.getParameter("region"); String sRegion = ""; if (region!=null) sRegion="®ion="+region+"&language="+region; %> Mobile discussions <% String lat = request.getParameter("lat"); String lng = request.getParameter("lng"); String sUrl="http://mtalk.linkstore.ru"; if (region !=null || lat!=null || lng!=null) { if (region!=null) { if (sUrl.indexOf("?")>0) sUrl+="&"; else sUrl+="?"; sUrl+="region="+region; } if (lat!=null && lng!=null) { if (sUrl.indexOf("?")>0) sUrl+="&"; else sUrl+="?"; sUrl+="lat="+lat+"&lng="+lng; } } String refreshUrl="/mtalk/index.jsp?fict="+java.lang.System.currentTimeMillis(); if (region!=null) { refreshUrl+="®ion="+region; } if (lat!=null && lng!=null) { refreshUrl+="&lat="+lat+"&lng="+lng; } String newUrl="/mtalk/new.jsp"; if (region !=null || lat!=null || lng!=null) { if (region!=null) { if (newUrl.indexOf("?")>0) newUrl+="&"; else newUrl+="?"; newUrl+="region="+region; } if (lat!=null && lng!=null) { if (newUrl.indexOf("?")>0) newUrl+="&"; else newUrl+="?"; newUrl+="lat0="+lat+"&lng0="+lng; } newUrl+="&"; } else newUrl+="?"; %>
Trying to get location and known discussions nearby ...