1
2
3
4
5 package hu.elte.tribus.action;
6
7 import hu.elte.tribus.interfaces.QaDao;
8
9 import javax.servlet.http.HttpServletRequest;
10 import javax.servlet.http.HttpServletResponse;
11
12 import org.apache.struts.action.ActionForm;
13 import org.apache.struts.action.ActionForward;
14 import org.apache.struts.action.ActionMapping;
15 import org.springframework.web.struts.ActionSupport;
16
17 /***
18 * MyEclipse Struts
19 * Creation date: 11-12-2006
20 *
21 * XDoclet definition:
22 * @struts.action validate="true"
23 */
24 public class EditQAAction extends ActionSupport {
25
26
27
28
29 /***
30 * Method execute
31 * @param mapping
32 * @param form
33 * @param request
34 * @param response
35 * @return ActionForward
36 */
37 public ActionForward execute(ActionMapping mapping, ActionForm form,
38 HttpServletRequest request, HttpServletResponse response) {
39 QaDao qaDao = (QaDao) getWebApplicationContext().getBean("qaDao");
40 request.setAttribute("qa.list", qaDao.getQaList());
41 return mapping.findForward("ok");
42 }
43 }