Rev 2018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2018 | Rev 2049 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | import org.apache.struts.action.ActionForm; |
3 | import org.apache.struts.action.ActionForm; |
4 | import org.apache.struts.action.ActionForward; |
4 | import org.apache.struts.action.ActionForward; |
5 | import org.apache.struts.action.ActionMapping; |
5 | import org.apache.struts.action.ActionMapping; |
6 | import org.apache.struts.actions.DispatchAction; |
6 | import org.apache.struts.actions.DispatchAction; |
7 | 7 | ||
8 | - | ||
9 | import javax.servlet.ServletException; |
8 | import javax.servlet.ServletException; |
10 | import javax.servlet.http.HttpServletRequest; |
9 | import javax.servlet.http.HttpServletRequest; |
11 | import javax.servlet.http.HttpServletResponse; |
10 | import javax.servlet.http.HttpServletResponse; |
12 | import java.io.IOException; |
11 | import java.io.IOException; |
13 | 12 | ||
14 | public class LoginAction extends DispatchAction |
13 | public class LoginAction extends DispatchAction |
15 | { |
14 | { |
16 | public ActionForward login(ActionMapping mapping, |
15 | public ActionForward login(ActionMapping mapping, |
17 | ActionForm form , |
16 | ActionForm form , |
18 | HttpServletRequest request, |
17 | HttpServletRequest request, |
19 | HttpServletResponse response) |
18 | HttpServletResponse response) |
20 | throws 1.5.0/docs/api/java/io/IOException.html">IOException, ServletException |
19 | throws 1.5.0/docs/api/java/io/IOException.html">IOException, ServletException |
21 | { |
20 | { |
22 | 21 | ||
23 | LoginForm lf = (LoginForm) form; |
22 | LoginForm lf = (LoginForm) form; |
24 | 23 | ||
25 | 24 | ||
26 | 25 | ||
27 | 1.5.0/docs/api/java/lang/System.html">System.out.println(lf.getUsername()); |
26 | 1.5.0/docs/api/java/lang/System.html">System.out.println(lf.getUsername()); |
28 | 1.5.0/docs/api/java/lang/System.html">System.out.println(lf.getPassword()); |
27 | 1.5.0/docs/api/java/lang/System.html">System.out.println(lf.getPassword()); |
29 | 28 | ||
30 | 29 | ||
31 | return mapping.getInputForward(); |
30 | return mapping.getInputForward(); |
32 | 31 | ||
33 | //return mapping.findForward("ok"); |
32 | //return mapping.findForward("ok"); |
34 | 33 | ||
35 | } |
34 | } |
36 | 35 | ||
37 | } |
36 | } |