By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,302 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

XML-JSP content Type problem

P: 2
Hi All,
Please help me out.
I am using AJAX and hence the have to display the response obtained from server in javascript variable on the screen and keep on refreshing it.
The problem here is that I am getting the entire XML along with tags as string (or Text) from the server as response and now I have to display it on the screen. The content type of jsp page will be automatically set to HTML since it will be having other HTML tags like <script>. Now how do i display that xml on the screen with content type as XML. Is it possible using Frames? I tried it but no success.

Note: Xml is mapped with XSL and standalone is working fine.
Jun 19 '07 #1
Share this Question
Share on Google+
4 Replies


P: 2
Hi All,
Please help me out.
I am using AJAX and hence the have to display the response obtained from server in javascript variable on the screen and keep on refreshing it.
The problem here is that I am getting the entire XML along with tags as string (or Text) from the server as response and now I have to display it on the screen. The content type of jsp page will be automatically set to HTML since it will be having other HTML tags like <script>. Now how do i display that xml on the screen with content type as XML. Is it possible using Frames? I tried it but no success.

Note: Xml is mapped with XSL and standalone is working fine.
Jun 19 '07 #2

acoder
Expert Mod 15k+
P: 16,027
Can you post some code?

Are you using responseXML? Is the response only (valid) XML or is there other content too?
Jun 19 '07 #3

Motoma
Expert 2.5K+
P: 3,237
I have moved this thread to the Javascript/AJAX forum with the hopes that the experts there will be able to provide you with more help on this issue.
Jun 19 '07 #4

acoder
Expert Mod 15k+
P: 16,027
I've merged both threads.
Jun 20 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.