Hi Bryan,

Thanks for your reply and pointer!

I got several questions for u and all experts of this list,

Any reasons behind regarding the recommendation about "the tags vs. actions
dilemma"?
  ==========================================================================
  =1. if the Java code will alter your Model, then put it in an Action (or =
  =equivalent).                                                            =
  =2. if the Java code is only reading your Model to aid in rendering some =
  =portions of it, the put it in a custom JSP tag.                         =
  ==========================================================================

Do u mind to give me more information about your application architecture?

For the sake of discussion, let's assume I only have two tables (parent and
child), what will be the steps for doing fundamental stuff like query,
update and create?

For example, use case for query of record:
1. jsp captures all required parameters for the query
2. action form creates corresponding query form bean and validation
3. action invokes business delegate and then service locator for getting a
jndi reference to corresponding EJB (session or entity)
4. action form (another one) creates corresponding display form bean with
attribute of list of records (e.g. array)
5. action (another one) copies EJB to list
6. jsp displays results using iterate tag for the list

Thanks again, I appreciate!

P.S.
I'm very very new for such development environment (struts + EJB), please be
patience 8)

Chris

-----Original Message-----
From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
Sent: April 26, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Re: (struts + EJB) example


Chris,

I don't have an example for you, but I have written a brief post-mortem 
analysis of a major project just finished which used EJB and Struts. It 
can be found here:

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg06088.html

It was posted to this group, but no one had anything to say in response, 
other than someone who referred me to a different framework (Barracuda), 
which I will be investigating next.

Regards,

Bryan


[EMAIL PROTECTED] wrote:

>Folks,
>
>Anyone know where I can get an example which use struts and ejb?
>
>Thanks in advance!
>
>P.S.
>Struts can work out of box with latest version of orion (i.e. 1.4.8) now 8)
>
>Chris
>
>

Reply via email to