aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes MVC Model Vs. JavaBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "MVC Model Vs. JavaBean" Watch "MVC Model Vs. JavaBean" New topic

MVC Model Vs. JavaBean

JPraveen Kumar
Ranch Hand

Joined: Aug 31, 2004
Posts: 80
Can you pls tell me whts the basic difference betwn a model and a bean. Since a bean is internally a model class can we use the two interchangeably? . I figured differences out the foll but am not sure :

a. A bean is primarily used in a jsp/EL context but a model is used to take the busi logic out of servlet for reusability in swing apps etc.

b. Since a bean is to be used in EL, it has to have proper getter/setter methods but the same may or may not be present in a model.

I agree. Here's the link:
subject: MVC Model Vs. JavaBean
Similar Threads
Expression Language usage.
Newer to JSF, looking for some clearification
JSF expression language
Confusion regarding ELContext and ELResolver
JSF 1.2 passing parameter to Managed Bean method