hi,
i am new to struts. i developed some examples on it. now i want to use struts with EJB. i am trying to call an EJB from ActionClass but getting errors. can you suggest any site where i can look into a posted example and try it.
ramakrishna
-
EJB and Struts (9 messages)
- Posted by: ramakrishna kalavendi
- Posted on: December 19 2002 04:54 EST
Threaded Messages (9)
- EJB and Struts by Web Master on December 19 2002 07:26 EST
- EJB and Struts by ramakrishna kalavendi on December 19 2002 09:02 EST
- EJB and Struts by Nagg rao on December 20 2002 01:44 EST
- ejb and struts by Sitalaxmi Madabhushi on May 23 2007 01:43 EDT
- EJB and Struts by ramakrishna kalavendi on December 19 2002 09:02 EST
- EJB and Struts by Joseph Agunpopo on December 21 2002 21:47 EST
- EJB and Struts by ramakrishna kalavendi on December 22 2002 23:41 EST
- Newbie by Joseph Agunpopo on May 17 2003 11:59 EDT
- EJB and Struts by ramakrishna kalavendi on December 22 2002 23:41 EST
- Struts and EJB by s s on May 21 2004 09:22 EDT
- Re: EJB and Struts by Baradha Chakkaravarthy on February 02 2007 03:35 EST
-
EJB and Struts[ Go to top ]
- Posted by: Web Master
- Posted on: December 19 2002 07:26 EST
- in response to ramakrishna kalavendi
Looking up and using an EJB from a Struts Action class is no different than doing it from anywhere else. Struts is not the problem (assuming your exception is truly EJB related). Are you able to use your EJB from a plain java class or a Servlet?
If you post your error or describe it a little more, you may get an quick answer. -
EJB and Struts[ Go to top ]
- Posted by: ramakrishna kalavendi
- Posted on: December 19 2002 09:02 EST
- in response to Web Master
hi,
i solved the problem and able to run the example on struts with EJB. auctually the problem was i made a .ear and kept the Action Classes in .jar where ejbs classes reside rather than in .war WEB-INF/classes . after that i corrected by keeping Action Classes in .war WEB-INF/classes and deployed and run the example.
thanks for your immediate reply.
ramakrishna -
EJB and Struts[ Go to top ]
- Posted by: Nagg rao
- Posted on: December 20 2002 13:44 EST
- in response to ramakrishna kalavendi
Struts is just a very light weight framework.
Its too generic and one need not worry about where and when to make EJB calls or SQL calls.
I would strongly suggest that you look in to the PetStore J2EE blueprints MVC model, it is more adapted to J2EE projects.
-NR -
ejb and struts[ Go to top ]
- Posted by: Sitalaxmi Madabhushi
- Posted on: May 23 2007 01:43 EDT
- in response to Web Master
Hi ramakrishna, Can u please tell me the steps you have used to deploy.I have tried using DEV site but I want something easier to write and understand. Thanks in advance, Sita -
EJB and Struts[ Go to top ]
- Posted by: Joseph Agunpopo
- Posted on: December 21 2002 21:47 EST
- in response to ramakrishna kalavendi
Hi I can't help to notice that that you are also a novice to the world of strut. I was just wondering if you might be able to share some light with me in regard to using strut to develop a web page. -
EJB and Struts[ Go to top ]
- Posted by: ramakrishna kalavendi
- Posted on: December 22 2002 23:41 EST
- in response to Joseph Agunpopo
-
Newbie[ Go to top ]
- Posted by: Joseph Agunpopo
- Posted on: May 17 2003 23:59 EDT
- in response to ramakrishna kalavendi
Hi
my email id is jagunpopo at yahoo dot com. pls get in touch. -
Struts and EJB[ Go to top ]
- Posted by: s s
- Posted on: May 21 2004 09:22 EDT
- in response to ramakrishna kalavendi
There is a good tutorial here:
http://www.devx.com/Java/Article/21065 -
Re: EJB and Struts[ Go to top ]
- Posted by: Baradha Chakkaravarthy
- Posted on: February 02 2007 03:35 EST
- in response to ramakrishna kalavendi
Hi do any have the sample for integrating Struts and EJB. I have tried working with the sample provided as in the devx.com but my .war file is getting deployed but I get 404 Page not found error when I get the URL as http://localhost:8080/stock/pages/stockquery.jsp. Like I am not clear what is the problem as the log file is also clean with out any error msgs. If any one could able to help me out it would be helpful.. Thank you in advance