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



Why would you desing a J2EE application so user data is entered by way of a JSP page and managed b..

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

Why would you desing a J2EE application so user data is entered by way of a JSP page and managed b..

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

Why would you desing a J2EE application so user data is entered by way of a JSP page and managed b..

Answer / sandeep

you can use mvc1 to implement the such requirement.

Is This Answer Correct ?    9 Yes 4 No

Why would you desing a J2EE application so user data is entered by way of a JSP page and managed b..

Answer / jana

i dnt knw

Is This Answer Correct ?    1 Yes 1 No

Why would you desing a J2EE application so user data is entered by way of a JSP page and managed b..

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

Post New Answer

More Core Java Interview Questions

How to find the length and capacity of a string buffer ?

2 Answers  


Which class is used by server applications to obtain a port and listen for client requests?

0 Answers  


How many bytes is double?

0 Answers  


public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 Answers  


what is multithreading?

5 Answers   Virtusa,


describe method overloading

0 Answers  


How many static init can you have?

0 Answers  


How do you square a number in java?

0 Answers  


Is integer a class?

0 Answers  


What is double word?

0 Answers  


Are nested try statements are possible?

2 Answers  


What are the types of collections in java?

0 Answers  


Categories