viewRelativePath = "";
viewName = viewName.substring(RoseConstants.VIEWS_PATH_WITH_END_SEP.length());
} else {
viewRelativePath = inv.getViewModule().getRelativePath();
}
ViewPathCache viewPathCache = globalViewPathCaches.get(viewRelativePath);
if (viewPathCache == null) {
String directoryPath = RoseConstants.VIEWS_PATH + viewRelativePath;
File directoryFile = new File(inv.getServletContext().getRealPath(directoryPath));
if (!directoryFile.exists()) {
String msg = "404: view directory not found, you need to create it in your webapp:"
+ directoryPath;
logger.error(msg);
inv.getResponse().sendError(404, msg);
return null;
}
viewPathCache = new ViewPathCache(viewRelativePath);
globalViewPathCaches.put(viewRelativePath, viewPathCache);
}
//
String viewPath;
int queryStringIndex = viewName.indexOf('?');