Can I set Tomcat with a welcome-file in a subfolder?


Someone at the office threw me this weird-yet-interesting question.

If I have something like this in a web.xml (either app' file or container's file)

<welcome-file-list> <welcome-file>something.html</welcome-file> </welcome-file-list>

and the thing has another page in a subfolder that can be used so I change it...

<welcome-file-list> <welcome-file>subfolder/something.html</welcome-file> </welcome-file-list>

¿Should the second option work? Thanks!


Answering to myself just to let it in the record.

<strong>Yes</strong>, it can be done. The address bar shows the context URL without the subfolder specified in the welcome-file directive. But it works fine.


  • Tomcat not loading Dispatcher Servlet (ClassNotFoundException)
  • T4MVC and testing with MvcContrib.TestHelpers getting 'The relative virtual path' errors
  • java.lang.NoClassDefFoundError: Could not initialize class org.omnifaces.config.WebXml
  • How to cache images only in disk using Kingfisher?
  • Why do native C++ projects have a TargetFrameworkVersion?
  • Setting the Inactive Highlight Colour of a WPF ListBox to the Active Highlight Colour
  • Vim ctags behaves strangely
  • Android libgdx prefs getting lost
  • Open an application in a space using applescripts
  • Synchronize windows folders
  • C#: Import/Export Settings into/from a File
  • Syntax error on tokens, AnnotationName expected instead - error on query
  • JSR-330 support in Picocontainer : @Inject … @Named(\"xxx)
  • How can I display the parent menu item's description using Wordpress walkers?
  • Looking for good analogy/examples for monitor verses semaphore
  • How to write order and limit within cakephp joins array
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • jquery mobile loadPage not working
  • Akka Routing: Reply's send to router ends up as dead letters
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Is there a mandatory requirement to switch app.yaml?
  • How to get icons for entities from eclipse?
  • Proper way to use connect-multiparty with express.js?
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • Turn off referential integrity in Derby? is it possible?
  • Add sale price programmatically to product variations
  • JaxB to read class hierarchy
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Unable to use reactive element in my shiny app
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal
  • How do I use LINQ to get all the Items that have a particular SubItem?