aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "highlighting " Watch "highlighting " New topic
Author

highlighting

sandeep kethe
Greenhorn

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

Sandy
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

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: http://aspose.com/file-tools
 
subject: highlighting