lenya/src/webapp/lenya/pubs/default/content/authoring create.xsp,1.3,1.4
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/webapp/lenya/pubs/default/content/authoring
In directory erbium:/tmp/cvs-serv21416/src/webapp/lenya/pubs/default/content/authoring
Modified Files:
create.xsp
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: create.xsp
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/pubs/default/content/authoring/create.xsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** create.xsp 14 May 2003 09:59:15 -0000 1.3
--- create.xsp 14 May 2003 10:18:20 -0000 1.4
***************
*** 6,17 ****
xmlns:xsp-lenya="http://www.lenya.org/xsp/lenya/1.0"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
- xmlns:xsp-session="http://apache.org/xsp/session/2.0" create-session="true"
>
- <xsp:structure>
- <xsp:include>org.apache.lenya.cms.ac.Identity</xsp:include>
- <xsp:include>org.apache.cocoon.environment.Session</xsp:include>
- </xsp:structure>
-
<parent-child>
--- 6,11 ----
***************
*** 20,33 ****
<xsp:logic>
- String SESSION_PARENT_ID_NAME =
- "org.apache.lenya.cms.cocoon.acting.ParentChildCreatorAction.parent_uri";
- // fetch the referer
- String referer = <xsp-request:get-uri/>;
String status = <xsp-request:get-parameter name="status"/>;
- if (status == null) {
- session.setAttribute(SESSION_PARENT_ID_NAME, referer);
- } else {
- referer = (String)session.getAttribute(SESSION_PARENT_ID_NAME);
- }
// get the parentId
--- 14,18 ----
***************
*** 40,47 ****
}
}
-
- <xsp:content>
- <referer><xsp:expr>referer</xsp:expr></referer>
- </xsp:content>
if ((status != null) && (status.equals("failed"))) {
--- 25,28 ----