You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/11/29 18:28:49 UTC

svn commit: r480640 - /incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/BookmarkSaveAction.java

Author: agilliland
Date: Wed Nov 29 09:28:49 2006
New Revision: 480640

URL: http://svn.apache.org/viewvc?view=rev&rev=480640
Log:
fix bug in BookmarkSaveAction caused by not properly preparing the form again after catching a url validation error.


Modified:
    incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/BookmarkSaveAction.java

Modified: incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/BookmarkSaveAction.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/BookmarkSaveAction.java?view=diff&rev=480640&r1=480639&r2=480640
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/BookmarkSaveAction.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/BookmarkSaveAction.java Wed Nov 29 09:28:49 2006
@@ -47,8 +47,8 @@
  * @struts.action path="/roller-ui/authoring/bookmarkSave" name="bookmarkFormEx"
  *    validate="true" input="/roller-ui/authoring/bookmarkEdit.do"
  * @struts.action-forward name="Bookmarks" path="/roller-ui/authoring/bookmarks.do?method=selectFolder"
- * @struts.action-forward name="BookmarkForm" path=".BookmarkForm"
- * 
+ * @struts.action-forward name="BookmarkEdit" path="/roller-ui/authoring/bookmarkEdit.do"
+ *
  * @author Dave Johnson
  */
 public class BookmarkSaveAction extends Action
@@ -82,7 +82,7 @@
         ActionErrors errors = validateBookmark(null, form);
         if (errors.size() > 0) {
             saveErrors(request, errors);
-            return mapping.findForward("BookmarkForm");
+            return mapping.findForward("BookmarkEdit");
         }
 
         RollerSession rses = RollerSession.getRollerSession(request);