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

Enabling/Disabling editing on html form fields in a JSP

 
pramodh somashekara
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a form with many text fileds in it. I want to restrict editing of the fields based on user groups. Some groups should have editing permission and others should not have. Which is the best way to implement it?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64630
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JSP forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64630
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use conditionals in the JSP to add the readonly attribute to the restricted fields for users who are not authroized to edit them. Or to not include the fields at all if appropriate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic