Package com.google.opengse.configuration

Examples of com.google.opengse.configuration.WebAppWelcomeFileList


  @Override
  public void init() throws ServletException {
    super.init();

    WebAppConfiguration config;
    WebAppWelcomeFileList welcomeFileList;
    String contextdir = this.getServletContext().getRealPath("/");
    try {
      config = WebAppConfigurationFactory.getConfiguration(new File(contextdir));
      welcomeFileList = config.getWelcomeFileList();
    } catch (WebAppConfigurationException e) {
      // Errors on getting configuration from web.xml
      welcomeFileList = null;
    }
    if (welcomeFileList != null) {
      welcomeFiles = welcomeFileList.getWelcomeFiles();
      for (int i = 0; i < welcomeFiles.length; ++i) {
        welcomeFiles[i] = welcomeFiles[i].trim();
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.google.opengse.configuration.WebAppWelcomeFileList

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.