呵呵,没有人学pet store?
sigh

解决方案 »

  1.   

    大家共同学习,前一段看了一下petstore的标签技术,不错
      

  2.   

    好!找到两位同道中人,这样前进的路上就不会太寂寞了。希望有更多的人加入!我的EMAIL是:   [email protected]. 欢迎写信给我。请authorlee(alsi)及               silentmoon(冷月无声)给出eamil?
    我现在正研究其中的waf部分和ejb部分。扩展标签暂时没有时间看呢。我现有一问题:
    pet store Version 1.3_01中的RequestProcessor.java中有一段代码:
            ServiceLocator sl = (ServiceLocator)request.getSession().getAttribute(WebKeys.SERVICE_LOCATOR);
            WebClientController wcc =  sl.getWebClientController();       HTMLAction action = getAction(selectedURL);
           if (action != null)
           {
               action.setServletContext(context);
               action.doStart(request);
               ev = action.perform(request);
               EventResponse eventResponse = null;
               if (ev != null)
               {
                   eventResponse  = wcc.handleEvent(ev);
               }
               action.doEnd(request, eventResponse);
            }其中,request.getSession().getAttribute(WebKeys.SERVICE_LOCATOR),我不知道在哪里有request.setSession().setAttribute(WebKeys.SERVICE_LOCATOR,SomeObject).我想就是在这段代码里waf将event与ejb tier匹配,然后Execute EJB action。当然,由猜测可知session.getAttribute(WebKeys.WEB_CLIENT_CONTROLLER)应返回ServiceLocatorImpl的一个实例,但我就是找不到在程式的哪里有request.setSession().setAttribute(WebKeys.SERVICE_LOCATOR,SomeObject)?请大伙看看。
      

  3.   

    http://www.csdn.net/expert/topic/719/719147.xml?temp=.6979334
    这个谢了
      

  4.   

    worldheart(时讯技术):请看看我2002-10-08 15:14:00 提出的问题。谢了
      

  5.   

    楼主啊,找WebKeys.SERVICE_LOCATOR这个东东不是很容易的事情?用windows的搜索不就行了?
    ServiceLocatorImpl.java,ShoppingClientServiceLocatorImpl.java内有
      

  6.   

    to eyeieye(魔之眼) :呵呵,多谢!眼拙了。我也看过这个文件,但万万没想到它会自已生成自已。这样的设计不知有何道理?别外,我还得找找究竟在何处调用了ServiceLocatorImpl.sessionCreated();
      

  7.   

    查了资料:HttpSessionListener接口的sessionCreated方法:Notification that a session was created.而sessionDestroyed方法:Notification that a session was invalidated.ServiceLocatorImpl实现了HttpSessionListener接口,也就是说当有session被创建,ServiceLocatorImpl.sessionCreated方法就被调用。但总得有一个ServiceLocatorImpl的实例啊,不知此ServiceLocatorImpl的实例在哪里创建了?
      

  8.   

    算我一个,互相交流,共同提高,呵呵
    [email protected]另外,哪位兄弟能讲讲那些后缀是screen的文件是啥东东?
      

  9.   

    其实后缀是screen的与后缀是do是一样的。它们都映射到不同的Servlet来解释。只不过前者是用MainServlet,而后者是用TemplateServlet。
      

  10.   

    呵呵,对不起,错了。应该是:只不过前者是用TemplateServlet,而后者是用MainServlet。