File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
redarding web application directory structure
Joined: Apr 29, 2008
Sep 05, 2008 07:19:00
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
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
<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?
Author and ninkuma
Joined: Jan 10, 2002
Sep 05, 2008 08:48:00
It first must be placed in a package other than the default. Then the package hierarchy is rooted at WEB-INF/classes.
Books by Bear
I agree. Here's the link:
- it saves me about five hours per week
subject: redarding web application directory structure
Calling a servlet from a html page
How to Import a JAVA File in JSP
regarding accessing java class thru javabean in jsp
applet is not running in jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013