Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to enable attributes in the JQuerygrid based on the user role ?

 
Yuva Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am doing a web application, in which my backend is a struts2 based java server and the frontend I am using JQuerygrid for populating the data from mysql database. All these are working fine. What I am searching for is, depending upon the user's role, the attributes in the <sjg:grid> should be enabled.

For eg., for an Administrator with role ADMIN, I need the user to be able to Add / Modify / Delete / View data for a master, whereas for an user with role GUEST, I need to provide only VIEW option for the master data.

ie.,


I am using struts2 v2.2, JQuery v2.5, JSON v2.2. Can someone please advise, how I can get this. Please let me know if any more information is required.

Thanks and regards

Yuva
 
Gopakumar Naryanan
Ranch Hand
Posts: 72
Eclipse IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it make any sense using jstl tags like <c:choose ></c:choose> TAGS?
 
Yuva Kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gopakumar Naryanan wrote:Does it make any sense using jstl tags like <c:choose ></c:choose> TAGS?


Thanks for your reply, but can you give me an example please.

Regards

Yuva
 
Gopakumar Naryanan
Ranch Hand
Posts: 72
Eclipse IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am not sure whether you are expecting something internal to grid.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic