File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes highlighting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "highlighting " Watch "highlighting " New topic


sandeep kethe

Joined: Jan 11, 2009
Posts: 14
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

Ankit Garg

Joined: Aug 03, 2008
Posts: 9463

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)

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: highlighting
It's not a secret anymore!