Struts and EJB mix up  
Author Message
gk





PostPosted: 2005-12-20 15:34:00 Top

java-programmer, Struts and EJB mix up i surfed google a lot but nowhere i found a sample code about how to
integrate Struts and EJB.

all i got is advice of "session facade" , "business delegate" etc etc.

no sample code !!

it seems to me that truts and EJB's can not be mixed.


i opened EJB book and they did not talk about mixing with Struts !
i opened Struts book and they did not talk about mixing with EJB!

i found an article of DEVX article though which is not good and well
-explained.


and did not find in the net about how to mix Struts and EJB.


is there anybody can provide me some resoures/links/book/SAMPLE CODE
recommendation about this mixing ?

 
David Van de Voorde





PostPosted: 2005-12-20 17:06:00 Top

java-programmer >> Struts and EJB mix up Probably in the EJB books they talked about how to write a client for your
EJB. Could it be that you should look at Struts as a client for your EJBs ?


"gk" <email***@***.com> wrote in message
news:email***@***.com...
|i surfed google a lot but nowhere i found a sample code about how to
| integrate Struts and EJB.
|
| all i got is advice of "session facade" , "business delegate" etc etc.
|
| no sample code !!
|
| it seems to me that truts and EJB's can not be mixed.
|
|
| i opened EJB book and they did not talk about mixing with Struts !
| i opened Struts book and they did not talk about mixing with EJB!
|
| i found an article of DEVX article though which is not good and well
| -explained.
|
|
| and did not find in the net about how to mix Struts and EJB.
|
|
| is there anybody can provide me some resoures/links/book/SAMPLE CODE
| recommendation about this mixing ?
|


 
gk





PostPosted: 2005-12-20 17:20:00 Top

java-programmer >> Struts and EJB mix up yes. they use a JSP as a client.

But i want to use Struts+ tiles .....and i hope you know , Struts
follows MVC. so, i have to write an Action class for that.

so, where and how do i call EJB's ?

should i call it in the Action class as my book shows the way it calls
the EJB in the JSP page itself ?


i dont know , how do i go about . i need an example code for
demonstration.


i want to mix Struts + EJB .

can you show some examples ?

 
 
Tim Terry





PostPosted: 2005-12-21 0:28:00 Top

java-programmer >> Struts and EJB mix up gk wrote:
> yes. they use a JSP as a client.
>
> But i want to use Struts+ tiles .....and i hope you know , Struts
> follows MVC. so, i have to write an Action class for that.
>
> so, where and how do i call EJB's ?
>
> should i call it in the Action class as my book shows the way it calls
> the EJB in the JSP page itself ?
>
>
> i dont know , how do i go about . i need an example code for
> demonstration.
>
>
> i want to mix Struts + EJB .
>
> can you show some examples ?
>
you should call your ejbs in your struts actions if they perform
business operations.

Tim