Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
support-rkalla
Post subject: [Configuration] What is a supported project layout?  PostPosted: Jan 26, 2006 - 01:57 AM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23347

MyEclipse historically (will be more flexible in the future) expects your project to be in an exploded WAR format. More specifically, something like:

Code:

/<project root>
   +/src <-- Java source code for web project (servlets, actions, forms, beans, etc.)
   +/docs <-- license files, readme's, etc
     +/api <-- Target for your Javadoc source generation
   +/lib <-- extra libs that the web app doesn't need while running
   +/webroot <-- this is the base of the webroot, this will be the root when deployed to Tomcat, etc.
     +index.jsp <-- example jsp file in root
     +/images <-- images for the website
     +/WEB-INF
       +/classes <-- build output directory
       +/lib <-- libs required for your webapp to run (i.e. struts.jar, etc.)
       +/conf <-- your custom conf files that you need for your app
       +/tld <-- taglibs


Please note that some example files (e.g. index.jsp) are shown in the tree above to make it more readable, but are not required. Also note that directories like /conf and /tld under the WEB-INF directory are not required but shown for organizational sake. You would make use of these dirs by placing config files (like struts-config.xml) in the /conf dir and adjusting your parameters to the Struts ActionServlet so it could find the file in its new location. Also you can organize your TLD files in the /tld dir and update your taglib-location entries in your web.xml file to point to the new locations.

As always, you are free to organize your project as you wish, but everything under /webroot is a 'best guess' suggestion for you to start with as it is supported by MyEclipse and most all IDEs as a standard WAR format. Anything outside of /webroot (the Eclipse project organization) is up to you to decide freely.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits