Geeks Talk

Prepare for your Next Interview




Writing Bussiness Logic using struts framework

This is a discussion on Writing Bussiness Logic using struts framework within the JSP forums, part of the Web Development category; Where do I write Bussiness Logic that using struts framework? is that we write in action class? or any?...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-09-2007
Junior Member
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
katipelly is on a distinguished road
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?
Reply With Quote
The Following User Says Thank You to katipelly For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-30-2007
Expert Member
 
Join Date: Oct 2005
Location: india,cochi,bangalore
Posts: 395
Thanks: 2
Thanked 8 Times in 7 Posts
vmshenoy is on a distinguished road
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.
Reply With Quote
  #3 (permalink)  
Old 06-15-2007
Junior Member
 
Join Date: Apr 2007
Location: Chennai
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
vinotha is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to vinotha For This Useful Post:
  #4 (permalink)  
Old 09-18-2007
Junior Member
 
Join Date: Sep 2007
Location: dallas
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
srinivasdumpala is on a distinguished road
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.
Reply With Quote
The Following User Says Thank You to srinivasdumpala For This Useful Post:
  #5 (permalink)  
Old 10-22-2007
Junior Member
 
Join Date: Jul 2007
Location: Bangalore, India
Posts: 12
Thanks: 0
Thanked 3 Times in 2 Posts
JaiBharath is on a distinguished road
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
Reply With Quote
The Following 2 Users Say Thank You to JaiBharath For This Useful Post:
  #6 (permalink)  
Old 11-23-2007
Junior Member
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
nagadeepa is on a distinguished road
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
Reply With Quote
  #7 (permalink)  
Old 01-31-2008
Junior Member
 
Join Date: Jan 2008
Location: hyderabad
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
malli1mca07 is on a distinguished road
Re: Writing Bussiness Logic using struts framework

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

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
struts anupamad Java 2 05-04-2007 02:40 AM
what is the logic behind this ? psuresh1982 Brainteasers 7 02-05-2007 02:38 AM
ASCII Resume Writing—Some Tips to Get You Writing timmy Resume Help 2 12-04-2006 08:27 PM
Where lies the flaw in the logic? psuresh1982 Brainteasers 1 11-17-2006 01:00 AM
Apply Logic to get the number Bessie Brainteasers 2 08-25-2006 03:24 PM


All times are GMT -4. The time now is 11:58 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved