I'm building an application that will have multiple security roles. I've accomplished the task with a single role with "Read Only" access. The question I have is if I designate a role to have "Read/Write" access, how do I convert the fields in JSP from <Bean:Write>'s to <input> so they can edit the fields?
I currently have the Role's security Bean in the session and can pull it from the .JSP. I have "0" = "No Access", "1" = "Read" access, and "2" = "Write" access. I can currently use the <logic:equal> tag to determine that they do not have "0" to display the table row with the field in it. However, I would rather not use this method (<logic:equal> tags) to determine if they have read access then show this line, if they have write access, then show this line...
I was hoping for a solution that would allow me to minimize duplication of effort so it's not a nightmare to add or remove fields or move them to another page in the application (which has 6 HTML pages of information).
Can someone point me in the right direction? I'm sure I'm not the only one with this situation.