Hi everyone, One stupid question I can't find the answer for. Is there any way to access request attributes (request.getAttribute("")) from inside struts tag? E.g. something like:
<c:set var='isReadonly' value='true'/> ... <html:text property='remarks' readonly='${isReadonly}'/> If it's not possible, is it a good idea to use scriptlets inside the tags? Like <% boolean isReadonly; if (((String)request.getAttribute("mode")).equals("view")) isReadonly = true; else isReadonly = false; %> ... <html:text property='remarks' readonly='<%=isReadonly%>'/> I tried both ways and the last kind of works, though in weird way (no matter what type 'isReadonly' is (eg, String or Boolean), the output is always readonly="readonly" if isReadonly==true or no output at all if isReadonly==false. Thanks a lot! vlad --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]