This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 9435

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
jQuery in Action, 3rd edition