JavaScript?
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var Mac = (navigator.userAgent.indexOf("Mac") != -1 )
var IE = (navigator.userAgent.indexOf("MSIE") != -1 &&
navigator.userAgent.indexOf("Mac") == -1 &&
navigator.appVersion.substring(0,1) >= 3);
var NS = (navigator.userAgent.indexOf("Mozilla") != -1 &&
navigator.userAgent.indexOf("Mac") == -1 &&
navigator.userAgent.indexOf("MSIE") == -1 &&
navigator.appVersion.substring(0,1) >= 4);
if (IE) {
document.write("<LINK REL=STYLESHEET HREF=\"/css/ie_style.css\"
TYPE=\"text/css\">");
}
if (Mac) {
document.write("<LINK REL=STYLESHEET HREF=\"/css/mac_style.css\"
TYPE=\"text/css\">");
}
if (NS) {
document.write("<LINK REL=STYLESHEET HREF=\"/css/ns_style.css\"
TYPE=\"text/css\">");
}
Mark
-----Original Message-----
From: Sudarson Roy Pratihar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 11:14 PM
To: [EMAIL PROTECTED]
Subject: Re: XML Presentation
Thanks for reply.
that's fine. But I don't want to throw output from jsp directly into
response, in stead I want to determine the client agent type and accordingly
apply style sheet on it to convert into some format that is understandable
to the agent. I also don't want to depend on whether client understand xml
content and style sheet directly (as IE 5.0 recognizes).
Any suggestion ?
Thanks,
Sudarson
-----Original Message-----
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 7:47 PM
To: [EMAIL PROTECTED]
Subject: Re: XML Presentation
you can still use jsps.
just put a <%@ page contentType="text/xml;charset=ISO-8859-1" %> on top
then put ur xml directly below.
-Tim
-----Original Message-----
From: Sudarson Roy Pratihar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:08 AM
To: [EMAIL PROTECTED]
Subject: XML Presentation
Hi All,
I want to use xml for presentation so that different client(browser, mobile
phone etc.) can access the web application using xsl and xml transformation.
But I have a question here, as jsp provides a convenient way of writing
presentation avoiding out.println s. Is there any way to do such kind of
things for generating dynamic xml content ?
Any suggestion is welcome.
TIA,
Sudarson
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html