Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2001 | es | 1 | package pt.estgp.es.exemplos.hibernate.web.login; |
2 | |||
3 | import org.apache.struts.action.ActionForm; |
||
4 | import org.apache.struts.action.ActionForward; |
||
5 | import org.apache.struts.action.ActionMapping; |
||
6 | import org.apache.struts.actions.DispatchAction; |
||
7 | |||
8 | import javax.servlet.ServletException; |
||
9 | import javax.servlet.http.HttpServletRequest; |
||
10 | import javax.servlet.http.HttpServletResponse; |
||
11 | import java.io.IOException; |
||
12 | |||
13 | public class LoginAction extends DispatchAction |
||
14 | { |
||
15 | public ActionForward login(ActionMapping mapping, |
||
16 | ActionForm form , |
||
17 | HttpServletRequest request, |
||
18 | HttpServletResponse response) |
||
19 | throws 1.5.0/docs/api/java/io/IOException.html">IOException, ServletException |
||
20 | { |
||
21 | |||
22 | LoginForm lf = (LoginForm) form; |
||
23 | |||
24 | |||
25 | |||
26 | 1.5.0/docs/api/java/lang/System.html">System.out.println(lf.getUsername()); |
||
27 | 1.5.0/docs/api/java/lang/System.html">System.out.println(lf.getPassword()); |
||
28 | |||
29 | |||
30 | return mapping.getInputForward(); |
||
31 | |||
32 | //return mapping.findForward("ok"); |
||
33 | |||
34 | } |
||
35 | |||
36 | } |