1 24 package org.infoglue.cms.applications.workflowtool.functions; 25 26 import java.util.Map ; 27 28 import javax.servlet.ServletRequest ; 29 30 import com.opensymphony.module.propertyset.PropertySet; 31 import com.opensymphony.workflow.FunctionProvider; 32 33 36 public class StoreRequestParamsInPropertySet implements FunctionProvider 37 { 38 public void execute(Map transientVars, Map args, PropertySet propertySet) 39 { 40 ServletRequest request = (ServletRequest )transientVars.get("request"); 41 42 String name = request.getParameter("name"); 43 String title = request.getParameter("title"); 44 String navigationTitle = request.getParameter("navigationTitle"); 45 String leadIn = request.getParameter("leadIn"); 46 String fullText = request.getParameter("fullText"); 47 48 propertySet.setString("name", name); 49 propertySet.setString("title", title); 50 propertySet.setString("navigationTitle", navigationTitle); 51 propertySet.setString("leadIn", leadIn); 52 propertySet.setString("fullText", fullText); 53 } 54 } 55 | Popular Tags |