Changing startup status to use requested url for continue link.
This commit is contained in:
parent
414067589e
commit
496d04243e
1 changed files with 11 additions and 4 deletions
|
@ -78,13 +78,20 @@ public class StartupStatusDisplayFilter implements Filter {
|
|||
bodyMap.put("contextPath", getContextPath());
|
||||
bodyMap.put("applicationName", getApplicationName());
|
||||
|
||||
HttpServletRequest httpreq = (HttpServletRequest) req;
|
||||
HttpServletRequest httpreq = (HttpServletRequest) req;
|
||||
String url = "";
|
||||
|
||||
String path = httpreq.getRequestURI();
|
||||
if( path != null ){
|
||||
url = path;
|
||||
}
|
||||
|
||||
String query = httpreq.getQueryString();
|
||||
if( !StringUtils.isEmpty( query )){
|
||||
query = "?" + query;
|
||||
}
|
||||
bodyMap.put("url", path+query );
|
||||
url = url + "?" + query;
|
||||
}
|
||||
|
||||
bodyMap.put("url", url );
|
||||
|
||||
hResp.setStatus(SC_INTERNAL_SERVER_ERROR);
|
||||
Template tpl = loadFreemarkerTemplate();
|
||||
|
|
Loading…
Add table
Reference in a new issue