Update of 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/resources/forms
In directory 
james.mmbase.org:/tmp/cvs-serv4889/java/com/finalist/cmsc/resources/forms

Modified Files:
        AttachmentInitAction.java 
Log Message:
CMSC-681 Asset Maintenance code refacted


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/resources/forms
See also: http://www.mmbase.org/jira/browse/CMSC-681


Index: AttachmentInitAction.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/resources/forms/AttachmentInitAction.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- AttachmentInitAction.java   10 May 2008 16:31:23 -0000      1.4
+++ AttachmentInitAction.java   6 Jan 2009 07:59:41 -0000       1.5
@@ -11,14 +11,19 @@
 
 public class AttachmentInitAction extends SearchInitAction {
 
+   private static final String CREATION = "creation";
+   private static final String CHANNELID = "channelid";
+   
    @Override
    public ActionForward execute(ActionMapping actionMapping, ActionForm 
actionForm,
          HttpServletRequest httpServletRequest, HttpServletResponse 
httpServletResponse) throws Exception {
       AttachmentForm searchForm = (AttachmentForm) actionForm;
 
+      String channelid = (String) 
httpServletRequest.getSession().getAttribute(CREATION);
       if (StringUtils.isEmpty(searchForm.getOrder())) {
          searchForm.setOrder("title");
       }
+      httpServletRequest.setAttribute(CHANNELID, channelid);
       return super.execute(actionMapping, actionForm, httpServletRequest, 
httpServletResponse);
    }
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to