我看到了一个action的配置如下:<action path="/syncworkspace" type="com.ibm.ws.console.core.action.SyncWorkSpaceAction">
   <forward name="list" path="console.sync.main"/>
   <forward name="conflict" path="console.sync.conflict"/>
   <forward name="success" path="console.content.main"/>
</action>
想问一下,<forward name="success" path="console.content.main"/>这些forward跳转的path属性,我以前都是写action.do或者jsp页面之类的,这里的console.content.main可能是在哪个配置文件里指出的什么东东啊,

解决方案 »

  1.   

    <forward name="list" path="console.sync.main"/>
    都应该这样写
    <forward name="list" path="/console.sync.main"/>
    少一个/
      

  2.   

    console.sync.main可能代表什么?
      

  3.   

    你看他web.xml里面写的什么撒
    也许是把servlet-mapping写成console.sync.main
      

  4.   

    很可能是Tiles里面配置的我们用Tiles的时候都是这么写的
    你看看这个应用里面是否含有Tiles
      

  5.   

    我晕 这明明是一个servlet 
    path="console.content.main"/>文件是 console.java  后面的是servlet处理的参数你在web.xml 里肯定能找到 console.* 这个servlet文件配置的url
      

  6.   

    dlxu(Coding超过了10W行) 说的对,好像是tiles,
    在这个工程下还有一个console-refs.xml文件,这文件里有相关语句:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN"                                   "http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
        <definition name="console.content.main" path="/secure/layouts/homePageLayout.jsp">
            <putList name="homePageList">
                <item
                    classtype="org.apache.struts.tiles.beans.SimpleMenuItem"
                    icon="" link="base.home.page" tooltip="" value="1"/>
            </putList>
        </definition>
    tiles怎么用的?
      

  7.   

    很可能是Tiles里面配置的我们用Tiles的时候都是这么写的
    你看看这个应用里面是否含有Tiles
    =============
    正解
    怎么用的看书,两句话讲不清