这个配置没有明白,比如,我想访问服务器端的org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceB_EngineBasedServer,写程序给他发送POST的话,是不是要把东西到 http://localhost:8080/yawl/lib/* 还是 http://localhost:8080/yawl/work 这两个有什么区别呢?另外, 那个星星是什么意思?  <servlet>
     <servlet-name>InterfaceBServlet</servlet-name>
     <description>
            Performs the necessary functionality to web-enable the YAWL
            engine.   It provides a REST based interface.
            It specifically provides access to the control and execution of
            cases in the workflow engine.
     </description>

     <servlet-class>
            org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceB_EngineBasedServer
     </servlet-class>
     
     <load-on-startup>1</load-on-startup>
   </servlet>   <servlet-mapping>
     <servlet-name>InterfaceBServlet</servlet-name>
     <url-pattern>/ib/*</url-pattern>
   </servlet-mapping>    
   <servlet-mapping>
    <servlet-name>InterfaceBServlet</servlet-name>
    <url-pattern>/work</url-pattern>
   </servlet-mapping>

解决方案 »

  1.   

    *是通配符,通配/lib/下任何路径访问
    如果是work,指匹配work路径
      

  2.   

    url-pattern里配置完了,你写哪个都是执行InterfaceBServlet。*是通配符。
      

  3.   

    /ib/*表示以/ib/开头的path都用这个servlet来处理
      

  4.   

    问题一:
    如果向 ("http://localhost:8080/yawl/ib") 与 ("http://localhost:8080/yawl/ib/ 是一个地方么? 第二个后面多了一个 "/"
    问题二:
    请看我的程序段,我的程序段的效果就是往 http://localhost:8080/yawl/ib 以及这个路径下的任何路径,比如http://localhost:8080/yawl/ib/aaa,都由 org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceB_EngineBasedServer 这个类来处理。 private static PostMethod getPostMethod1(){
    PostMethod post = new PostMethod("http://localhost:8080/yawl/ib");
    NameValuePair action = new NameValuePair( "action", "connect" );
    NameValuePair userName  = new NameValuePair( "userid", "anna");
    NameValuePair passWord  = new NameValuePair( "password", "anna");
    post.setRequestBody(new NameValuePair[] { action, userName, passWord });
    return post;
    }