Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Struts and EJB mix up

Thread view: 
gk - 20 Dec 2005 07:33 GMT
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 - 20 Dec 2005 09:05 GMT
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 ?

|i surfed google a lot but nowhere i found a sample code about how to
| integrate Struts and EJB.
[quoted text clipped - 15 lines]
| is there anybody can provide me some resoures/links/book/SAMPLE CODE
| recommendation about this mixing ?
gk - 20 Dec 2005 09:20 GMT
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 - 20 Dec 2005 16:25 GMT
> yes. they use a JSP  as a client.
>
[quoted text clipped - 12 lines]
>
> can you show some examples ?

you should call your ejbs in your struts actions if they perform
business operations.

Tim


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.