• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Where to place the Bean package in J2EE server

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am programming a j2ee application with servlets and jsp.
One of the servlets will use a bean and set it as request
attribute,then forward to a jsp.In the jsp,it get the
attribute bean from request.So,the servlet has a statement
"import bank.bean.MyBean",the jsp has a directive
<%@ page import "bank.bean.MyBean" %>
The application is named "bank".
The development file system structure is like:
/bank/servlets/*.java (package bank.servlets)
/bank/bean/*.java (package bank.bean)
I am using a J2EE server,and use that deploytool to apploy
the servlets and jsp,now,it seems all servlets class files
are in the /bank/WEB-INF/classes/bank/servlets and all jsp
files are in the /bank/ root directory.
but where I place the package "bank.bean"? I need to make
the bean class files accessible to the servlets and jsp.
Do I have to make a jar file for the bean and add the path
    Bookmark Topic Watch Topic
  • New Topic