Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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 Blogs FAQ Tag Cloud Calendar Mark Forums Read

JSP JSP Related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #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 9 Times in 8 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

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


All times are GMT -4. The time now is 07:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved