ABSTRACT

Invalid path entries prevent Struts from locating the correct resource to service requests.

EXPLANATION

Struts uses the path attribute to locate the resource necessary to handle a request. Since the path is a module-relative location, it is an error if it does not begin with a "/" character.

Example 1: The following configuration contains an empty path.

                   
<global-exceptions>
<exception key="global.error.invalidLogin" path="" scope="request" type="InvalidLoginException" />
</global-exceptions>


Example 2: The following configuration uses a path that does not start with a "/" character.

<global-forwards>
<forward name="login" path="Login.jsp" />
</global-forwards>

REFERENCES

[1] Apache Struts 1.3 Specification

[2] Chuck Caveness, Brian Keeton

[3] struts-config_1_3.dtd