Index: /home/sebi/workspace/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java
===================================================================
--- /home/sebi/workspace/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java	(Revision 291)
+++ /home/sebi/workspace/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java	(Working copy)
@@ -39,6 +39,7 @@
     private String path;
     private String event;
     private Map<String,Object> parameters = new HashMap<String,Object>();
+    private String anchor;
 
     /**
      * Default constructor that takes the supplied path and stores it for use.
@@ -155,6 +156,29 @@
     }
 
     /**
+     * Sets the anchor, if any, that will be appended to the URL. E.g. if supplied with
+     * 'input' then the URL will be terminated with '#input' in order to instruct
+     * the browser to navigate to the HTML anchor called 'input' when accessing the URL.
+     *
+     * @param anchor the anchor with or without the leading pound sign, or null to disable
+     */
+    public T setAnchor(String anchor) {
+        this.anchor = anchor;
+        return (T) this;
+    }
+
+    /**
+     * Gets the anchor, if any, that will be appended to the URL. E.g. if this method
+     * returns 'input' then the URL will be terminated with '#input' in order to instruct
+     * the browser to navigate to the HTML anchor called 'input' when accessing the URL.
+     *
+     * @return the anchor (if any) as supplied or null
+     */
+    public String getAnchor() {
+        return anchor;
+    }
+
+    /**
      * Constructs the URL for the resolution by taking the path and appending
      * any parameters supplied.
      * 
@@ -178,6 +202,7 @@
             builder.setEvent(event);
         }
         builder.addParameters(this.parameters);
+        builder.setAnchor(anchor);
         return builder.toString();
     }
 }

