Results 1 to 8 of 8

Thread: Writing Bussiness Logic using struts framework

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

    Writing Bussiness Logic using struts framework

    Where do I write Bussiness Logic that using struts framework? is that we write in action class? or any?


  2. #2
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    Re: Writing Bussiness Logic using struts framework

    Quote Originally Posted by katipelly View Post
    Where do I write Bussiness Logic that using struts framework? is that we write in action class? or any?
    Yes, business logic is written in action class.There is one action class for each module , say, for eg if u have login module, then u can have LoginActionClass.java , where u can implement business logic.

    :)
    NEVER SAY DIE.

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Answers
    15

    Re: Writing Bussiness Logic using struts framework

    Hi,

    you have to write the business logic in EJBs.
    and call the EJBs from Action class.
    Action will make decision like which JSP page has to be called next


  4. #4

    Re: Writing Bussiness Logic using struts framework

    Never implement business logic in action class,its not recommended.its visible to client and its tight coupled.
    Always delegate the biz logic using form beans or DTO or EJB.

    Action is only controller, it handles request from actionservlet and forwarding to view pages.


  5. #5
    Junior Member
    Join Date
    Jul 2007
    Answers
    12

    Re: Writing Bussiness Logic using struts framework

    Never think of putting business logic in the action classes. Its not the way to work using struts. Action classes r only to act as a controller which delegates the control to some DAO, EJB objects. So always put ur business logic in DAO or EJbs...while using struts framework


  6. #6
    Junior Member
    Join Date
    Nov 2007
    Answers
    7

    Re: Writing Bussiness Logic using struts framework

    No business login should be written in a Model class which can be called from Action class.


    we can write BL in Action class even but the if u want the same BL to be applied for an GUI application we need to write the same BL code again.

    But if we write the BL code in Model class this can used by Action class of Struts Frame work as well as GuI application also


  7. #7
    Junior Member
    Join Date
    Jan 2008
    Answers
    11

    Re: Writing Bussiness Logic using struts framework

    it is better to write BL in either POJo(PlainOldJavaClasesses)/EJB


  8. #8
    Junior Member
    Join Date
    Aug 2008
    Answers
    1

    Re: Writing Bussiness Logic using struts framework

    Hi i am new person to Java struts,may i know the clear definition of business logic and presentation logic with example and purpose of that, what will do,why we are using....please help me......


  9.  Sponsored Ads
    Ad


     

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