lenya/src/java/org/apache/lenya/cms/cocoon/acting DefaultCreatorAction.java,1.1,1.2

Christian Egli <[email protected]> Wed, 14 May 2003 12:18:22 +0200
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/java/org/apache/lenya/cms/cocoon/acting
In directory erbium:/tmp/cvs-serv21416/src/java/org/apache/lenya/cms/cocoon/acting

Modified Files:
	DefaultCreatorAction.java 
Log Message:
Thanks to the fact that it is now possible to use constructs like
{request:requestURI} in the sitemap and thanks to the fact that the
requestURI for a creation request contains the URL of the requesting
document we no longer need to put the referer into the session.

When the creation was successful we simply redirect back to the
requestURI.


Index: DefaultCreatorAction.java
===================================================================
RCS file: /repository/lenya/src/java/org/apache/lenya/cms/cocoon/acting/DefaultCreatorAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DefaultCreatorAction.java	8 May 2003 08:37:10 -0000	1.1
--- DefaultCreatorAction.java	14 May 2003 10:18:20 -0000	1.2
***************
*** 273,286 ****
  	siteTree.serialize();
  
-         // Redirect to referer
- 	String parent_uri = (String) session.getAttribute(
-             "org.apache.lenya.cms.cocoon.acting.ParentChildCreatorAction.parent_uri");
- 	getLogger().info(".act(): Child added");
- 
  	HashMap actionMap = new HashMap();
- 	actionMap.put("parent_uri", parent_uri);
- 	session.removeAttribute(
-             "org.apache.lenya.cms.cocoon.acting.ParentChildCreatorAction.parent_uri");
- 
  	return actionMap;
      }
--- 273,277 ----