• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why we use struts

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have been using servlets, jsp for my
applications. of course new to struts learning.
Could ne body tell me why i will go for struts.
How they are different from servlets and jsp.
I need to understand the basice behind it.
Looking for a response
Deepak
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts is nothing different than JSP, Servlets. It normally uses
Servlets to control the flow and JSP for the presentation.
(There are also versions available which use XML). It is a
framework which helps you to use the MVC pattern in your application.
This pattern suggest to seperate Model (Business Layer), View (JSP)
and Controller(Servlet). The idea behind is that no business logic should
be in the JSP cause then you are able to change the view layer (e.g.
produce WML code) and keep the same business logic. Controller is used
to define the flow of your application, so you have a central configuration
where your flow is defined( this is only basicly done by struts, there you
only find information about which JSP's are addressed by which Actions and
which Forms are used.)
Hope this helps. Also a good idea would be to check the Struts Homepage
 
reply
    Bookmark Topic Watch Topic
  • New Topic