You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/08/13 19:24:38 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/content/info overview.xsp revisions.xsp

andreas     2003/08/13 10:24:38

  Modified:    src/webapp/lenya/content/info overview.xsp revisions.xsp
  Log:
  moved session initialization from revisions to overview tab
  
  Revision  Changes    Path
  1.2       +6 -0      cocoon-lenya/src/webapp/lenya/content/info/overview.xsp
  
  Index: overview.xsp
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/content/info/overview.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- overview.xsp	11 Aug 2003 13:30:38 -0000	1.1
  +++ overview.xsp	13 Aug 2003 17:24:38 -0000	1.2
  @@ -27,6 +27,12 @@
     		<lenya-info:status></lenya-info:status>
           <dc:language><input:get-attribute module="page-envelope" as="object" name="document-language"/></dc:language>
       <xsp:logic>
  +    	
  +      String docId = (String)<input:get-attribute module="page-envelope" as="object" name="document-id"/>;
  +      Session session = request.getSession(true);
  +      session.setAttribute("org.apache.lenya.cms.info.target", docId);
  +      session.setAttribute("org.apache.lenya.cms.info.area", request.getParameter("lenya.area"));
  +    	
         String[] documentlanguages = (String[])<input:get-attribute module="page-envelope" as="object" name="document-languages"/>;
         StringBuffer str = new StringBuffer();
         for (int i = 0; i &lt; documentlanguages.length; i++) {
  
  
  
  1.2       +0 -3      cocoon-lenya/src/webapp/lenya/content/info/revisions.xsp
  
  Index: revisions.xsp
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/content/info/revisions.xsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- revisions.xsp	11 Aug 2003 13:30:38 -0000	1.1
  +++ revisions.xsp	13 Aug 2003 17:24:38 -0000	1.2
  @@ -26,9 +26,6 @@
     <rc:revisions>
      <xsp:logic>
       String docId = (String)<input:get-attribute module="page-envelope" as="object" name="document-id"/>;
  -    Session session=request.getSession(true);
  -    session.setAttribute("org.apache.lenya.cms.info.target",docId);
  -    session.setAttribute("org.apache.lenya.cms.info.area", request.getParameter("lenya.area"));
       Publication publication = (Publication)<input:get-attribute module="page-envelope" as="object" name="publication"/>;
   
         String rootDir=publication.getEnvironment().getPublicationPath();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org