0

如果我在动作映射中有一个动作标签列表,是否可以定义一个基本路径?

现在我有类似的东西:

 <action-mappings>
    <action path="/basepath/path1" forward="/jsp/pathl.jsp" />
    <action path="/basepath/path2" forward="/jsp/path2.jsp" />
 </action-mappings>

我想做类似的事情:

 <action-mappings basepath="/basepath">
    <action path="/path1" forward="/jsp/pathl.jsp" />
    <action path="/path2" forward="/jsp/path2.jsp" />
 </action-mappings>
4

0 回答 0