| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
package org.demosys.web.iteration.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 |
0 |
public class ShowIterationsAction extends Action { |
| 17 |
|
public static final String ITERATIONS = "ITERATIONS"; |
| 18 |
|
|
| 19 |
|
public ActionForward execute(ActionMapping mapping, ActionForm objForm, |
| 20 |
|
HttpServletRequest request, HttpServletResponse res) { |
| 21 |
0 |
request.setAttribute(ITERATIONS, |
| 22 |
|
ServiceLocator.getServiceLocator().getIterationService().getAllIterations()); |
| 23 |
|
|
| 24 |
0 |
return mapping.findForward("success"); |
| 25 |
|
} |
| 26 |
|
} |