Hi!
When I try to obtain the client's preferred mime type (knowing it's MIE 6.0) and
compare it to MimeType.HTML it returns false:
CapabilityMap capab = ((JetspeedRunData)runData).getCapability();
(...)
if (capab.getPreferredType().equals(MimeType.HTML)) // returns false even if the
client's browser is MIE 6.0
I printed the string version of both mime types on the sdterr.log....
System.err.println("error: " + capab.getPreferredType().toString() + "-" +
(MimeType.HTML).toString());
...and I got this:
error: text/html-text/html; charset=UTF-8
As you can see, the mime types declarations are different. I think it is a bug.
I resolved the problem comparing the string version of mime type to "text/html".
Helder
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>