I
itpcl
In the following coding, the cryptoPassword1 is always
not equal to cryptoPassword2.
I want to check if anything goes wrong.
What is the usual way to debug a action class?
Thanks
public class RegisterAction extends Action {
public ActionForward perform (ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res)
{
RegisterForm rf = (RegisterForm) form;
String username = rf.getUsername();
String password1 = rf.getPassword1();
String password2 = rf.getPassword2();
GenPassword cryptoPassword1 = new GenPassword(password1, "MD5");
GenPassword cryptoPassword2 = new GenPassword(password2, "MD5");
if (cryptoPassword1.equals(cryptoPassword2)) {
try {
not equal to cryptoPassword2.
I want to check if anything goes wrong.
What is the usual way to debug a action class?
Thanks
public class RegisterAction extends Action {
public ActionForward perform (ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res)
{
RegisterForm rf = (RegisterForm) form;
String username = rf.getUsername();
String password1 = rf.getPassword1();
String password2 = rf.getPassword2();
GenPassword cryptoPassword1 = new GenPassword(password1, "MD5");
GenPassword cryptoPassword2 = new GenPassword(password2, "MD5");
if (cryptoPassword1.equals(cryptoPassword2)) {
try {