Discussions

EJB programming & troubleshooting: EJB and Struts

  1. EJB and Struts (9 messages)

    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

    Threaded Messages (9)

  2. EJB and Struts[ Go to top ]

    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.
  3. EJB and Struts[ Go to top ]

    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
  4. EJB and Struts[ Go to top ]

    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
  5. ejb and struts[ Go to top ]

    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
  6. EJB and Struts[ Go to top ]

    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.
  7. EJB and Struts[ Go to top ]

    hi joseph,

    send me your mail id to me kalavendi@yahoo.com
  8. Newbie[ Go to top ]

    Hi
    my email id is jagunpopo at yahoo dot com. pls get in touch.
  9. Struts and EJB[ Go to top ]

    There is a good tutorial here:
    http://www.devx.com/Java/Article/21065
  10. Re: EJB and Struts[ Go to top ]

    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