关于路径

(1)工程路径

(2)类路径
相对于WEB-INF/classes而言的

 

--->>>jsp中的路径
/egl/pages/logistics/trans_provide_info.jsp

egl是工程名,在tomcat的config中配置的
<Context path="/egl" docBase ="E:/work/EGL/public/dev/web" reloadable="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
            prefix="egl_log." suffix=".txt" timestamp="true"/>
</Context>
后面的pages/logistics/trans_provide_info.jsp就是E:/work/EGL/public/dev/web下面的文件


--->>>action的路径
/egl/logistics/trans_provide_info.do

egl是工程名,它查找WEB-INF/classes下的trans_provide_info对应的class,中间/logistics是namespace
<package name="logistics" extends="webwork-default" namespace="/logistics">
   <default-interceptor-ref name="myDefaultWebStack"/>

   <action name="trans_provide_info" class="j1.logistics.tp.action.TransProvideAction">
   <result name="success" type="chain">
        <param name="actionName">trans_provide_list</param>
        <param name="namespace">/logistics</param>
    </result>             
    </action>
        ......
/egl/logistics/trans_provide_info.do =/egl/WEB-INF/classes/logistics/trans_provide_info.do