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
|
@ -79,12 +79,19 @@ public class StartupStatusDisplayFilter implements Filter {
|
||||||
bodyMap.put("applicationName", getApplicationName());
|
bodyMap.put("applicationName", getApplicationName());
|
||||||
|
|
||||||
HttpServletRequest httpreq = (HttpServletRequest) req;
|
HttpServletRequest httpreq = (HttpServletRequest) req;
|
||||||
|
String url = "";
|
||||||
|
|
||||||
String path = httpreq.getRequestURI();
|
String path = httpreq.getRequestURI();
|
||||||
|
if( path != null ){
|
||||||
|
url = path;
|
||||||
|
}
|
||||||
|
|
||||||
String query = httpreq.getQueryString();
|
String query = httpreq.getQueryString();
|
||||||
if( !StringUtils.isEmpty( query )){
|
if( !StringUtils.isEmpty( query )){
|
||||||
query = "?" + query;
|
url = url + "?" + query;
|
||||||
}
|
}
|
||||||
bodyMap.put("url", path+query );
|
|
||||||
|
bodyMap.put("url", url );
|
||||||
|
|
||||||
hResp.setStatus(SC_INTERNAL_SERVER_ERROR);
|
hResp.setStatus(SC_INTERNAL_SERVER_ERROR);
|
||||||
Template tpl = loadFreemarkerTemplate();
|
Template tpl = loadFreemarkerTemplate();
|
||||||
|
|
Loading…
Add table
Reference in a new issue