Sounds like the best solution is to write your own form field tags
(perhaps subclassing the Struts ones). A lot of work, maybe, but has the best
reusability & separation of logic and presentation.
--
Tim
Moore / Blackboard Inc. / Software
Engineer
1899 L Street, NW/ 5th Floor /
Washington, DC 20036
Phone 202-463-4860
ext. 258 / Fax 202-463-4863
-----Original Message-----
From: Shunhui Zhu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 12:34 PM
To: [EMAIL PROTECTED]
Subject: Permissions: read-only vs. writable versionHi, I'm wondering whether anyone knows of a solution, prefereably via tags, to the permission problem. I have a page, but depending on the user, I'd like to present it as either read-only, or as writable, this can even be on the field-by-field level. For example, the price field, should either be presented as <input type=text> for a writable version, or simply as text for a read-only version. The not so pretty solution is to put all the <logic:equal> type of tag around the fields, but I'd like to know whether there are other solutions, such as put the logic in the <html:text> tags, or some other way.Thanks.Shunhui

