|
I used the template approach to resolve a similar
problem. Create a template file ( template.jsp ), create a main page to do the inserts ( mypage.jsp
), then create a separate page(pageX.jsp) for each permission. Put the logic in mypage.jsp to check the
permissions and decide which page to load in the template. That will solve the presentation
part. You will also want to put
authentication logic in your Action object so that some malicious user can
subvert your presentation layer. James Hicks Systems Administrator BerryDirect - Nacogdoches,
TX [EMAIL PROTECTED] voice: 936-462-4655 pager: 936-462-2062 -----Original Message----- Hi, 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 |
Title: Referer pages and structs
- Permissions: read-only vs. writable version Shunhui Zhu
- RE: Permissions: read-only vs. writable version Nanduri, Amarnath
- RE: Permissions: read-only vs. writable version Hicks, James
- RE: Permissions: read-only vs. writable version Tim Moore
- RE: Permissions: read-only vs. writable version Jon.Ridgway

