-1

When global results are configured outside a package in struts.xml dtd says I can't do that. How to have one error page as a result for unforeseen error result across packages.

Cybermonk
  • 514
  • 1
  • 6
  • 28

1 Answers1

0

What you want to do is leverage package inheritance:

<package name="myapplication-default" extends="struts-default">
  <!- place your global result definitions here in this package -->
</package>

<package name="someotherpackage-default" extends="myapplication-default">
  <!-- reuses configuration from myapplication-default -->
</package>
Naros
  • 19,928
  • 3
  • 41
  • 71