Prepare for your Next Interview
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?...
|
|||
|
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?
|
| The Following User Says Thank You to katipelly For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Writing Bussiness Logic using struts framework
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. |
|
|||
|
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 |
| The Following User Says Thank You to vinotha For This Useful Post: | ||
|
|||
|
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. |
| The Following User Says Thank You to srinivasdumpala For This Useful Post: | ||
|
|||
|
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
|
| The Following 2 Users Say Thank You to JaiBharath For This Useful Post: | ||
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |