Package org.springframework.web.context.support

Examples of org.springframework.web.context.support.ServletContextResource


        // load the file
        File file = loader.find(reqPath);

        if (file == null && scloader != null) {
            // try loading as a servlet resource
            ServletContextResource resource = (ServletContextResource) scloader
                    .getResource(reqPath);
            if (resource != null && resource.exists()) {
                file = resource.getFile();
            }
        }
       
        if(file != null) {
            return DataUtilities.fileToURL(file);
View Full Code Here


        // load the file
        File file = loader.find(reqPath);

        if (file == null && scloader != null) {
            //try loading as a servlet resource
            ServletContextResource resource = (ServletContextResource) scloader.getResource(reqPath);
            if (resource != null && resource.exists()) {
                file = resource.getFile();
            }
        }
       
        if (file == null) {
            //return a 404
View Full Code Here

TOP

Related Classes of org.springframework.web.context.support.ServletContextResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.