session bean 调用本地的entity bean 的findAll()方法,取得结果集,再从struts调用

解决方案 »

  1.   

    to moke33(勤奋的菜鸟):请问struts如何调用Session Bean的remote接口并得到结果集呢?
      

  2.   

    和JSP,Servlet调用Session Bean是一样的。
      

  3.   

    First, hold the session bean's home holder in your action: ctx.look(?), and demashals it to its proper type.
    Second, the FindAll method should be declared in Home.
    Third, using home.findAll() to get the collection then you will know itYou don't know jndi or you've not put your question clear?