1

Is it possible to use same namespace in different struts.xml files?. I know that we can use different namespaces. The problem is, i have so many actions in my configuration file. I just want to split up inorder to manage easily. But if i use different namespace for each file, i have to modify the namespace mentioned everywhere(JSPs).

For ex.

I want to use namespace="/" in all my struts.xml files.

I hope you understand what I am coming to say. Is this possible or any other relevant easy method to achieve this?

Thanks in advance

4

2 に答える 2

0
<struts>

    <!-- Other information goes here -->     
    <include file = "Administrator-Config.xml"/>
    <include file = "CustomerConfig.xml"/>
    <include file = "EmployerConfig.xml"/>  
    <!-- Other information goes here -->

</struts>
于 2011-07-01T11:45:21.550 に答える
0

同じ名前空間を持つ複数のパッケージを確実に使用できます。パッケージに同じ名前を付けることはできないことを覚えておいてください。また、次のようにメインの struts.xml にすべてを含める必要があります。

<include file="path to your config files"/>
于 2011-07-01T08:35:05.613 に答える