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

Roman C
  • 49,761
  • 33
  • 66
  • 176
dbyuvaraj
  • 487
  • 1
  • 6
  • 20

2 Answers2

0

You definitely can use multiple packages with same namespace. Just remember packages cannot have same names. You also need to include them all in your main struts.xml like:

<include file="path to your config files"/>
doctrey
  • 1,227
  • 1
  • 12
  • 25
0
<struts>

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

</struts>
Abdul
  • 577
  • 1
  • 5
  • 21