Why would you desing a J2EE application so user data is
entered by way of a JSP page and managed by an underlying
Java Beans class?
Answers were Sorted based on User's Feedback
Answer / tarun tyagi
See if you are still writing applications that use
data-aware GUI components to interface directly with the
database, you might want to reconsider. Applications built
in this manner are not object oriented. Such two-layer
(GUI/Database) applications violate one of the primary
principles of object-oriented design: encapsulation.
Encapsulation is what allows a client to interact with an
object without knowledge of its implementation details, a
primary premise for loose coupling. In applications that use
data-aware widgets, the opposite is the case. The client and
the database are very tightly coupled. GUI code, business
logic, and SQL statements are all interwoven throughout the
application source code. As a result, the application can
become a maintenance nightmare. Any changes in the database
schema will surely cascade into unexpected failures.
Thats why we design a J2EE application so user data is
entered by way of a JSP page and managed by an underlying
Java Beans class
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / nash
Its always better to seggregate/seperate the duties of
components. Its correct way to implement MVC architecture.
JSP takes care of View Component and Bean Object will be
used as Transfer Object in application.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / sandeep
you can use mvc1 to implement the such requirement.
| Is This Answer Correct ? | 9 Yes | 4 No |
Answer / rajesh
As per my understanding, Java Bean exposes the properties
of the JSP page in a consistent way.
Also it represents the jsp page as a simple java object
(POJO) which is having certain state. and it is easy to
handle java beans.
| Is This Answer Correct ? | 0 Yes | 4 No |
Difference between serialization and deserialization in java?
please send me hr interview questions in it industry
what is difference between Action messages and Action errors?
WHAT IS JDK,JVM,CLASS DEFINE ALL?
What are variable arguments or varargs?
we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2
Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
what is synchronization
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is an argument in java?
What is getkey () in java?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
0 Answers HCL, SAP Labs, Vital Soft,