Web tier: servlets, JSP, Web frameworks: database access from JSP
Is it proper to have database interactions directly from the JSP. Or should i seperate the business logic to another servlet/bean.
- Posted by: shibi sudhakaran
- Posted on: September 07 2000 05:06 EDT
You should ideally call a session bean to do the database access for you. This assumes you have some controlling or sequencing logic.
You may then hit an entity bean or the database itself.
Preferably use a stateless session bean and hit the database directly using either CMP or BMP.