title: Struts2 message resource bundle folder hierarchy in Eclipse
body: <p>I'm trying to create a "double folder/package" hierarchy in Eclipse to split my actual Java code from the message resource bundles that the Struts2 framework uses. To do that I created two source folders in Eclipse, one called src and one called resources. For Struts2 to properly match the correct action class to the right resource bundle, the hierarchy must match.</p>
  
  <p>In the image below something similar is done except folders are used instead of packages and the actual split up is one level deeper.</p>
  
  <p><img src="https://i.stack.imgur.com/r6ui3.jpg" alt="enter image description here"></p>
  
  <p>However, Eclipse won't let met create packages with <strong>the same name</strong> in the resources folder aswell as in the src folder. (If I try, i just get an empty package "com" in my resources folder?)</p>
  
  <p>So I'm forced to put the message resource bundles a t the same place as my actual classes, like in the picture below. This can get ugly quickly If I need more languages or create more packages. </p>
  
  <p>How can I neatly organize and separate this?</p>
  
  <p><img src="https://i.stack.imgur.com/tljOc.png" alt="enter image description here"></p>