Need help I have set a boolean in form .. I need to check if boolean is true in another class
Posted on 2011-10-01
I have to check if a user is admin or a analyst ... if a user is analyst I have to return some value
I already did role checking in my action and form classes .I also have following getters and setters
getIsAnalyst() method which returns isAnalyst (which is a boolean value) and setIsAnalyst method
I have an another helper class , which returns some ID ... I want to check in that helper class wether isAnalyst or not
return " " ;
return " "
but form(which is object of form class)I get error "form" cannot be resolved , I tried creating object for my form class in that helper class , i am not sure If I am doing it right .Is there any other way of doing it or anybody has a good solution to it ...please help !!!!