jsp and beans or jsp and servlets ?

Hello everybody.I have a general question.I want tio know what is more right way to do J2EE programming, to use JSP and JavaBeans or JSP and Servlets ?Thanks in advance.
[197 byte] By [Dmitrisa] at [2007-10-2 12:34:55]
# 1
HiR u aware abt the concept of OOP'sjsp with beans provides the reusability of codeand jsp and servlet is a way to make web based applicationok
skpmcaa at 2007-7-13 9:35:00 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

you need all. Servlets do the business logic (database transactions, input validation, etc.), JSP's are used to display the results of what the servlets do, java beans are used to store and share data between servlets and JSP's.

Using JSTL (the right way to do JSP's) you actually need beans to be able to easily display information.

gimbal2a at 2007-7-13 9:35:00 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Thanks for answer. It's realy clear some of my questions.
Dmitrisa at 2007-7-13 9:35:00 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...