This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes how to set password and encoded password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to set password and encoded password" Watch "how to set password and encoded password" New topic
Author

how to set password and encoded password

Raj
Greenhorn

Joined: Dec 05, 2007
Posts: 17
Hello ,
Here Is my code:

if(resetPwd=true){
theForm.setResetPassword(true);
user.setPassword(theForm.getPassword());
user.setPassword(theForm.getRepassword());
}
if(resetPwd=false){
theForm.setResetPassword(false);
user.setEncodedPassword(Integer.parseInt(theForm.getPassword()));
user.setEncodedPassword(Integer.parseInt(theForm.getRepassword()));

I have edit user option and in that i can edit my password also and can set new password.So in save user i am using both setpassword();and setEncodedPassword();.
If user did not change password then it should be setencoded password but in my case it is not exixuting and always it will set new password for the same user when i edit.because resetpassword is always true.
please help me to resolve this issue.what wrong in my code please let me know.
thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set password and encoded password
 
Similar Threads
reason for createZip and createClassesJar being commented out
Always responding invalidLogin.jsp
Password got change
How to create ConfirmServlet using a JavaMail / Servlet Mechanism?
Determining the location of the file