1 16 package org.apache.cocoon.portal.acting; 17 18 import java.util.Map ; 19 20 import org.apache.avalon.framework.parameters.Parameters; 21 import org.apache.cocoon.acting.AbstractAction; 22 import org.apache.cocoon.environment.Redirector; 23 import org.apache.cocoon.environment.SourceResolver; 24 25 32 public class ObjectModelAction 33 extends AbstractAction { 34 35 38 public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) 39 throws Exception { 40 final String [] names = parameters.getNames(); 41 for(int i = 0; i < names.length; i++) { 42 final String name = names[i]; 43 objectModel.put("cocoon-portal-" + name, parameters.getParameter(name)); 44 } 45 return EMPTY_MAP; 46 } 47 } 48 | Popular Tags |