StringBuffer backUrl = new StringBuffer();
backUrl.append("http://").append(request.getServerName());
if (request.getServerPort() != 80)
{
backUrl.append(":").append(request.getServerPort());
}
backUrl.append(request.getContextPath()).append(request.getServletPath()).append("?").append(
request.getQueryString());
ServletActionContext.getRequest().getSession().setAttribute(WapstoreOnlineConstants.SESSION_WAP_RESURL,
backUrl.toString());
return backUrl.toString();
backUrl.append("http://").append(request.getServerName());
if (request.getServerPort() != 80)
{
backUrl.append(":").append(request.getServerPort());
}
backUrl.append(request.getContextPath()).append(request.getServletPath()).append("?").append(
request.getQueryString());
ServletActionContext.getRequest().getSession().setAttribute(WapstoreOnlineConstants.SESSION_WAP_RESURL,
backUrl.toString());
return backUrl.toString();