Java Code Examples for org.apache.struts.action.ActionMapping#getName()

The following examples show how to use org.apache.struts.action.ActionMapping#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KualiRequestProcessor.java    From rice with Educational Community License v2.0 6 votes vote down vote up
private ActionForm createNewActionForm(ActionMapping mapping, HttpServletRequest request) {
       String name = mapping.getName();
       FormBeanConfig config = moduleConfig.findFormBeanConfig(name);
       if (config == null) {
           log.warn("No FormBeanConfig found under '" + name + "'");
           return (null);
       }
       ActionForm instance = RequestUtils.createActionForm(config, servlet);
       if ("request".equals(mapping.getScope())) {
           request.setAttribute(mapping.getAttribute(), instance);
       } else {
           HttpSession session = request.getSession();
           session.setAttribute(mapping.getAttribute(), instance);
       }
       return instance;
}