Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

highlighting

 
sandeep kethe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP i need to highlight password field when it is a new user.If we are going to update user then password fileds must be hide.....

Can any one help me please



THnaks in advance

Sandy
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sandeep I think you have the same page for new user signup and update profile. Now what I didn't understand that do you don't want the password field only when update profile is done or do you want a hidden text field in that case. Hidden field would not be secure so you should not use it. If you don't want the password field when profile is updated, then just use a if condition in your JSP to check if the request is of signup or profile update. I can't tell the exact details of how to recognize the type of request as it will be highly dependent on your application...

(By if condition I don't mean a scriplet. I mean a JSTL if tag)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic