Results 1 to 7 of 7

Thread: MVC Architecture in STRUTS

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    1

    MVC Architecture in STRUTS

    Can any one tell about the MVC Architecture in STRUTS and the advantages of using MVC Architecture


  2. #2
    Junior Member
    Join Date
    Oct 2007
    Answers
    1

    Re: MVC Architecture in STRUTS

    Hi,
    all i am new to this site i dont know how to post queries to the group.Please help me out.


  3. #3
    Junior Member
    Join Date
    Oct 2007
    Answers
    4

    Re: MVC Architecture in STRUTS

    Mvc stands for model view controller architecture. Swing “j” components (e.g. Jtable, jlist, jtree etc) use a modified version of mvc. Mvc separates a model (or data source) from a presentation and the logic that manages it. Swing mvc architecture (e.g. Jtable) component (eg: jtable):view & controller model ui manager uidelegate eg: tablemodel look-and-feel for jtable component (e.g. Jtable, jtree, and jlist): coordinates actions of model and the ui delegate. Each generic component class handles its own individual view-and-controller responsibilities. Model (e.g. Tablemodel): charged with storing the data. Uidelegate: responsible for getting the data from model and rendering it to screen. It delegates any look-and- feel aspect of the component to the ui manager.


  4. #4
    Junior Member
    Join Date
    Aug 2007
    Answers
    18

    Re: MVC Architecture in STRUTS

    Struts provides a framework for writing applications using the MVC architecture. Struts uses "ActionMapping," which enables the servlet to turn user requests into application actions. ActionMapping usually specifies a request path, the object type to act upon the request, and other properties as needed.
    The Action object used as a part of the ActionMapping is responsible for either handling the request and sending the response back to the appropriate view (normally a Web browser), or passing the request along to the appropriate model.
    The bridge between the model and the view is a form bean that can be created by subclassing org.apache.struts.action.ActionForm. The form bean can be used to hold data from the user prior to processing, or from a model prior to display back to the user. Struts includes custom tags that can automatically populate fields from the form bean created.
    The Model-View-Controller (MVC) architecture leverages the strengths of servlets and JavaServer Pages (JSP), while minimizing their weaknesses.


  5. #5
    Junior Member
    Join Date
    Aug 2008
    Answers
    15

    Re: MVC Architecture in STRUTS

    HI,
    for any web application client and server require.this is called 2 tier architecture.
    In this, client is responsible to develop presentation logic and business logic.
    and server is responsible for data storage.
    but at client side foolowing disadvantages:
    1.business logic developed along with presentation logic
    2. resources which are used for develop business logic are allocated at client side.
    So we use mvc
    In this,
    model is responsible for develop business logic
    view is responsible for develop presentation logic
    controller is responsible for flow of execution from request to response.
    client is responsible for only to send the request.
    server is responsible for store the data into the database.

    thanks
    shashi


  6. #6
    Junior Member
    Join Date
    Sep 2008
    Answers
    2

    Smile Re: MVC Architecture in STRUTS

    Nice answer...

    Quote Originally Posted by sjava.438 View Post
    HI,
    for any web application client and server require.this is called 2 tier architecture.
    In this, client is responsible to develop presentation logic and business logic.
    and server is responsible for data storage.
    but at client side foolowing disadvantages:
    1.business logic developed along with presentation logic
    2. resources which are used for develop business logic are allocated at client side.
    So we use mvc
    In this,
    model is responsible for develop business logic
    view is responsible for develop presentation logic
    controller is responsible for flow of execution from request to response.
    client is responsible for only to send the request.
    server is responsible for store the data into the database.

    thanks
    shashi



  7. #7
    Junior Member
    Join Date
    May 2006
    Answers
    1

    Re: MVC Architecture in STRUTS

    Hi all,

    Here my friend's given some good threads to explanations about the MVC.
    And with that insparation here iam going to given my view of MVC.

    MVC Interms of Struts:

    View: is represtation of data using jsp's/Html's where we will use struts-html,struts-bean,struts-logic tags are used to represent data or input the data.

    Controller: When it comes to controller part ActionServlet & Action classes are used as controllers.When User send the request from view it is handled by action servlets and forward it to appropriate action calss.

    Model: In struts Java beans and DAO classes are represents the model.A Java bean is simple java class contains getters and setters.when user send the request the form properites are automatically set in to form bean properties and sent for processinng the request.


    Thanks & Regads
    Srikanth


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact