# Loading XML file from JSP

**URL:** https://forum.kirupa.com/t/loading-xml-file-from-jsp/194636
**Category:** flash
**Created:** [July 25, 2006, 6:42am UTC](https://forum.kirupa.com/t/loading-xml-file-from-jsp/194636 "2006-07-25T06:42:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ravidon](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@ravidon](https://forum.kirupa.com/u/ravidon)
#### Post date: [July 25, 2006, 6:42am UTC](https://forum.kirupa.com/t/loading-xml-file-from-jsp/194636/1 "2006-07-25T06:42:28Z")

</div>

Hi to all,  
I want to load an xml file which will be generated by JSP file.  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] xmlDoc:[COLOR=#0000FF]XML[/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]XML[/COLOR]COLOR=#000000[/COLOR];  
xmlDoc.[COLOR=#0000FF]ignoreWhite[/COLOR]=[COLOR=#000000] **true** [/COLOR];  
xmlDoc.[COLOR=#0000FF]onLoad[/COLOR] = display;  
xmlDoc.[COLOR=#0000FF]load[/COLOR]COLOR=#000000; [/COLOR]  
[/LEFT]  
[/FONT]

xmlDoc.load("[http://localhost:8080/samples/Test.do?exec=xml](http://localhost:8080/samples/Test.do?exec=xml)); will call the method “xml” of the java class file(com.test.NewsDetails.java) which is mapped to Action Path “Test” in the struts configuration file…

```auto

<action
      path="/Test"
      type="com.test.NewsDetails"
      name="NewsForm"
      scope="request"
      validate="false"
      parameter="exec">

   <forward name="NextPage" contextRelative="true"
path="/pages/Flash/News/NewsDetails.jsp"/>
  </action>

```

The method ‘xml’ will fetch the data from the database and set it into request.

```auto

 Public ActionForward xml(ActionMapping mapping,ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception {
 
   TestForm testForm = ........// fetch the data from the database
   .........
  request.setAttribute("data", testForm);
 return mapping.findForward("NextPage");
}

```

so this will call the NewsDetails.jsp ,and in this jsp I will output the data as an xml document ,so that my flash file will load the xml file.

This stuff will work in mozilla,firefox and netscape but not IE.That means flash will load(get) the xml file in mozilla,firefox but not in IE. What is the problem with IE? How to overcome this problem in IE. Any suggestion will be appreciable…
