On Tuesday, February 18, 2003, at 07:08 PM, Mike Davis wrote:
Sorry if this is a repeat, I thought I hit send on the last version, but Yahoo disagrees with me at I did, so once again unto the breach...
I would like to render XHTML and I need help with:
- How to map user-agents to media-types?
see media.xreg
= Is there a single mapping file?
= Is yes, where is it?
= If no, which is the key (.java I assume) file(s) to update?
- Does the media-type-entry in media.xreg, such as :
<media-type-entry name="wml">
imply the template subdirectory name? such as:
.../templates/jsp/layouts/wml
you have to create the directories yourself, and the JSP or vmyou can also break down the PSML by media type if you like by creating the directories or database entries
in both cases, the resolution algorithm is built in
Or is this mapped somewhere else?Make sure your portlet checks for the media type.
- Are there other files like .../util/MimeType.java that need to be updated to add new media-types?
- Any other "gotcha's"?
I did this for XML last year. It was pretty easy then, and we didn't have a working media type registry then
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
