Hi David,
Thanks for the reply and the info. I have a few follow-on questions:
- media.xreg seems to setup and map media-type to mime-type. Just to clarify,
whatever the literal string is used for media-type, that exact same literal string is
used to resolve the template directory name right?
- media.xreg (from the basic WAR at least) contains no references to actual
user-agents, such as these three:
Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)
Opera/5.0 (Linux 2.0.38 i386; U) [en]
UP.Browser
I am most interested in how these are mapped to a media-type, if at all. Or does
Jetspeed use the "Accept" HTTP header to map to the appropriate media-type? Where (in
the code) does this mapping occur?
Thanks,
Mike
David Sean Taylor <[EMAIL PROTECTED]> wrote:
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 :
>
>
>
> imply the template subdirectory name? such as:
>
> .../templates/jsp/layouts/wml
>
you have to create the directories yourself, and the JSP or vm
you 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?
>
> - Are there other files like .../util/MimeType.java that need to be
> updated to add new media-types?
>
> - Any other "gotcha's"?
>
Make sure your portlet checks for the media type.
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]
---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day