View by MDG
<%
//check for file availability.else include the jsp files.
String fileNameRegion = request.getRealPath("/mdg/Region-Country.xml");
String fileNameIndicator = request.getRealPath("/mdg/indicator_xml.xml");
boolean existsRegion = (new File(fileNameRegion)).exists();
boolean existsIndicator = (new File(fileNameIndicator)).exists();
if (existsRegion && existsIndicator) {
System.out.println("xml files are available already");
} else {
%>
<%
System.out.println("xml files are not available, so including the files");
}// End else
%>