1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
package org.demosys.web.user.action; |
7 |
|
import javax.servlet.http.HttpServletRequest; |
8 |
|
import javax.servlet.http.HttpServletResponse; |
9 |
|
import org.apache.struts.action.Action; |
10 |
|
import org.apache.struts.action.ActionForm; |
11 |
|
import org.apache.struts.action.ActionForward; |
12 |
|
import org.apache.struts.action.ActionMapping; |
13 |
|
import org.demosys.web.ServiceLocator; |
14 |
|
|
15 |
|
|
16 |
|
|
17 |
4 |
public class ShowUsersAction extends Action { |
18 |
|
public static final String USERS = "USERS"; |
19 |
|
|
20 |
|
public ActionForward execute(ActionMapping mapping, ActionForm objForm, |
21 |
|
HttpServletRequest request, HttpServletResponse res) { |
22 |
4 |
request.setAttribute(USERS, |
23 |
|
ServiceLocator.getServiceLocator().getUserService().getAllUsers()); |
24 |
|
|
25 |
4 |
return mapping.findForward("success"); |
26 |
|
} |
27 |
|
} |