KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nextime > ion > backoffice > action > HomeAction


1 package org.nextime.ion.backoffice.action;
2
3
4 import java.io.IOException JavaDoc;
5 import javax.servlet.ServletException JavaDoc;
6 import javax.servlet.http.HttpServletRequest JavaDoc;
7 import javax.servlet.http.HttpServletResponse JavaDoc;
8 import org.apache.struts.action.ActionForm;
9 import org.apache.struts.action.ActionForward;
10 import org.apache.struts.action.ActionMapping;
11
12
13
14 public class HomeAction extends BaseAction {
15
16     public ActionForward perform(ActionMapping mapping,
17                                  ActionForm form,
18                                  HttpServletRequest JavaDoc request,
19                                  HttpServletResponse JavaDoc response)
20         throws IOException JavaDoc, ServletException JavaDoc {
21             
22         // check if user is correctly logged
23
checkUser(request);
24         
25         // Forward to the next page
26
return (mapping.findForward("view"));
27
28     }
29
30 }
31
Popular Tags