Created
June 3, 2023 08:32
-
-
Save techisbeautiful/2cc60e693717b2ca97b6b487509d7ec8 to your computer and use it in GitHub Desktop.
Controller (Struts Action)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LoginAction extends Action { | |
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
LoginForm loginForm = (LoginForm) form; | |
String username = loginForm.getUsername(); | |
String password = loginForm.getPassword(); | |
// Perform authentication and other business logic | |
return mapping.findForward("success"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment