On Sat, 5 Feb 2000, Singh Kuldip wrote:

> becausethe file has .jsp extention not .xml so browser does not consider it
> xml and displays as normal file


As others have said, you should set the 'Content-type' to identify the
document as xml. If that doesn't work (as IE tends to try to second guess
Content-types as identified by the server) you can try calling your page
with extra 'path info' to 'fool' ie into thinking it is a different name.

instead of calling:
http://www.foo.bar/myfile.jsp?variables=this

call
http://www.foo.bar/myfile.jsp/newname.xml?variables=this


the 'newname.xml' will show up to the jsp page as part of the
'PATH-INFO' environment variable. So unless you are using PATH_INFO
for something else, this should work.

- vin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to