• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

redarding web application directory structure

 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It first must be placed in a package other than the default. Then the package hierarchy is rooted at WEB-INF/classes.
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic