1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts.action;
19
20
21 /***
22 * <p>A subclass of <strong>ActionForward</strong> that defaults the
23 * <code>redirect</code> attribute to <code>true</code>.</p>
24 *
25 * @version $Rev: 421119 $ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005)
26 * $
27 */
28 public class RedirectingActionForward extends ActionForward {
29
30
31 /***
32 * <p>Construct a new instance with default values.</p>
33 */
34 public RedirectingActionForward() {
35 this(null);
36 }
37
38 /***
39 * <p>Construct a new instance with the specified path.</p>
40 *
41 * @param path Path for this instance
42 */
43 public RedirectingActionForward(String path) {
44 super();
45 setName(null);
46 setPath(path);
47 setRedirect(true);
48 }
49 }