• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Why struts when there is EJB?

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am a newbie to struts, but of late I am seeing that it is gaining so much importance, that everyone is talking about it.
And, as a result of that, companies are mentioning it in the required skill sets for recruitment adverisemnts.
When I just grazed through struts, I found that it uses MVC architecture.
What is confusing me is EJB does just that, and then why struts?
Is it because, it's smaller? What are the advantages it has over EJB?
TIA,
Shashi
 
Ranch Hand
Posts: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJB is for writing business logic and persistemt logic.
 
Shashi Kanta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pradeep,
Do you mean, struts cannot do that, and is meant for writing session data only?
Please clarify a little more in details..
Thanks,
Shashi
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts is a widely using Web Framework for writing MVC Web Applications in Java. Struts handles the Controller piece and, to a less extent, the View piece of the puzzle. The Model piece(read business logic) is not addressed by Struts, nor is any certain approach dictated. Take a look at the Struts Project Page for more information.
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shashi Kanta:
What is confusing me is EJB does just that, and then why struts?
Is it because, it's smaller? What are the advantages it has over EJB?


I think u r trying to comparing things, which are in different tiers.... They are not replacable and each of them are not an alternative for the another one... So it's not reasonable to compare them....
 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think u r trying to comparing things, which are in different tiers.... They are not replacable and each of them are not an alternative for the another one...
To add a note on this, struts and ejbs work excellently together.
 
Author
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trying to compare Struts and EJB misses the point -- they are orthogonal technologies, which may complement one another. As others have stated, Struts is an MVC web framework, EJB is for encapsulating business logic.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic