01: package org.manentia.kasai.ui.actions;
02:
03: import java.util.ResourceBundle;
04:
05: import javax.servlet.http.HttpServletRequest;
06: import javax.servlet.http.HttpServletResponse;
07:
08: import org.apache.struts.action.ActionForm;
09: import org.apache.struts.action.ActionForward;
10: import org.apache.struts.action.ActionMapping;
11: import org.manentia.kasai.Constants;
12:
13: public class LoadParams extends BaseAction {
14: public ActionForward execute(ActionMapping mapping,
15: ActionForm form, HttpServletRequest request,
16: HttpServletResponse response) throws Exception {
17:
18: ResourceBundle config = ResourceBundle
19: .getBundle(Constants.CONFIG_PROPERTY_FILE);
20:
21: Integer rowsPerPage = new Integer(config
22: .getString("lists.rowsPerPage"));
23:
24: request.getSession().setAttribute("rowsPerPage", rowsPerPage);
25:
26: return mapping.findForward(SUCCESS);
27: }
28: }
|