Discussions

Web tier: servlets, JSP, Web frameworks: database access from JSP

  1. database access from JSP (1 messages)

    Is it proper to have database interactions directly from the JSP. Or should i seperate the business logic to another servlet/bean.

    Threaded Messages (1)

  2. database access from JSP[ Go to top ]

    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.