Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is singleton service?

0 Answers  


If a method is declared as protected, where may the method be accessed?

0 Answers  


What do you mean by the term transient?

5 Answers   Ericsson,


Java.util.regex consists of which classes?

0 Answers  


Is an integer an object?

0 Answers  


Explain the difference between abstract class and interface in java?

0 Answers  


Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

2 Answers   ADP,


hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 Answers  


What do you mean by a JVM?

0 Answers   GE,


What is meant by constructor?

8 Answers  


What is the point of polymorphism java?

0 Answers  


How can we pass argument to a function by reference instead of pass by value?

0 Answers  


Categories