i have implemented a simple login application in
Struts 2. In the login page, i added 2 buttons. first button is for the new user registration process and second button to login process for existing users. Now, on click of either button calls the execute method of the same action class. how could i distinguish them in the execute call? for your reference, login.jsp is attached below:
please tell me the best way of implementing the above logic in struts 2.