I have a text box in which I would like to be able to write or not depending on the profile that the application uses. This text box is in html code inside a .jsp and the verification of this profile is done in its action. How could I do it so that if the profile is the one I want, I can write in that text box and if it is not, no?
<tr>
<td>
<bean:message key="depen.insert.alas"/>
</td>
<td>
<html:text readonly="false" property="alas">
</html:text>
</td>
</tr>
And in the action I have to check a profile:
String p = P.getP(request);
if it is a, the property will be readonly if it is b, but I do not know how to link these things to do this, I know it will not be very difficult but it is the first time I do it.