You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shamdasani Nimmi-ANS004 <AN...@motorola.com> on 2001/03/16 21:01:01 UTC

How to handle an extra button on login page

Hi,

I want to add an extra button 'Change Password' on my logon screen, which should take me instead to the 'changePassword.jsp' screen where I would enter the username, password, new password fields .

I want a suggestion on how to handle this. Should I have the same form bean for both logon.jsp and changePassword.jsp? If yes then the validate method of the form bean cannot do validations like,e.g. check for the new password and confirm new password fields to be non-blank because these fields are not on logon form.

Also the validate() method of the form bean would get called when I click on 'Change Password' button and since username and password would be null at that time it would return errors.

I would really appreciate if someone could tell me how they handled such a situation.

Thanks in advance.

-Nimmi