While creating a local forward for an action for struts 1.1 I noticed that the “Redirect” check box wasn’t working correctly for me. I looked at the code generated for the “Redirect” and “Context Relative” check boxes:
Redirect CHECKED, Context Releative CHECKED produces:
<forward name=”success” path=”/index.jsp” />
Redirect NOT CHECKED, Context Releative CHECKED produces:
<forward name=”success” path=”/index.jsp” redirect=”false” />
Redirect CHECKED, Context Relation NOT CHECKED produces:
<forward name=”success” path=”/index.jsp” contextRelative=”false” />
Redirect NOT CHECKED, Context Relation NOT CHECKED produces:
<forward name=”success” path=”/index.jsp” redirect=”false” contextRelative=”false” />
The configuration editor seems to believe the default is true for both redirect and contextRelative but my testing so far shows that at least the redirect defaults to false.
I’m I missing something or should the configuration editor not rely on the defaults?
–josh