Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Why we use struts

Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic