Hi,
Can someone suggest where should the logic for this go - In action or presentation?
I have a text box which I want to display if user has the role of ADMIN otherwise don't want to show that text box.
I'm thinking I should set the formbean variable in action to true or false and then check for that in the
jsp. Is that a right approach ?
If yes, then this is kind of what I'm thinking in action:
And this in jsp:
But I get a null pointer exception with above in jsp.
If I use this instead:
<bean:write name="formbean" property="show_customer"/>
I do get the true and false appropriately depending on roles, but then how do I perform if else using JSTL ?
Thanks!