XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 8th, 2004, 12:44 PM
MrSaint MrSaint is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 MrSaint User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
View XML in iframe which source is a JSP File

Hello.

I have to show in an iframe xml data as it would be shown if I just created xml file (test.xml) an opened it in IE. I need this view in iframe where I call JSP source as


<IFRAME ID="XML" name="XML" src="showXML.jsp" width="100%" height="300px" ></IFRAME>

This showXML.jsp just does a print out of the XML String which is stored in Database.

The strange thing that now happend is: on certain xml strings it works fine and I got a view as I want, and some I just see the data between.

By experimental for myself, I found out that the data-between-view always appears if put the xml string between html tags. But I got noch html tags in my showXML.jsp

Can anybody help me? thank!

Reply With Quote
  #2  
Old March 9th, 2004, 07:19 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
Maybe before you print out the XML in the JSP, set the Response mime-type to text/xml.

response.setContentType("text/xml");

Also make sure that the first line always says <?xml version="1.0"?>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > View XML in iframe which source is a JSP File


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway