This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes redarding web application directory structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "redarding web application directory structure " Watch "redarding web application directory structure " New topic
Author

redarding web application directory structure

Brij Garg
Ranch Hand

Joined: Apr 29, 2008
Posts: 234
Hi,

I beg your pardon if this is not the right place to post this thread.
I searched forums for a while and found this forum right one to post my doubt.

I am in the process of developing one small web application.

My doubt is:

I am using the standard directory structure as suggested by J2EE specification.
that is:

my web-application folder (forum) is in webapps folder. i.e (webapps/forum)
I have jsp folder in forum directory for my jsps. i.e (webapps/forum/jsp)

My jsp is using java bean Connection.java

<jsp:useBean id="db" class="Connection" scope="session"/>

My doubt is where to place the class file i.e Connection.class in this directory structure.

I have placed it in webapps/forum/web-inf/classes folder.
Is it correct?

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

It first must be placed in a package other than the default. Then the package hierarchy is rooted at WEB-INF/classes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redarding web application directory structure