XML causing "active content" warning

I downloaded a free xml photo gallery code ( from airtight
interactive). Everything seems to work fine and I was able to embed
it into my html page and customize it. But when I test in IE, I get
that bothersome "active content" warning. The original xml file
when run as a full page gallery (not embedded in html) doesn't do
this. I want to have several galleries on my site and such a
warning would become a big irritant to visitors. Any ideas of how
to change my code to make it stop? (The page opens fine on firefox,
netscape, opera)

deearess wrote:
> I downloaded a free xml photo gallery code ( from
airtight interactive).
> Everything seems to work fine and I was able to embed it
into my html page and
> customize it. But when I test in IE, I get that
bothersome "active content"
> warning. The original xml file when run as a full page
gallery (not embedded
> in html) doesn't do this. I want to have several
galleries on my site and such
> a warning would become a big irritant to visitors. Any
ideas of how to change
> my code to make it stop? (The page opens fine on
firefox, netscape, opera)
>
this page offers a good step by step explanation on how to do
that:
http://blog.deconcept.com/swfobject/
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List

Similar Messages

  • Active Content warning with web player

    We have a client who is using our web packaged program from a
    CD and they are getting Active Content warnings and they do not
    like it. Is there a way to set the active content to run when start
    the CD without using the registry? They said something about doing
    it through discretionary access control list (DACL) files.

    I've never heard of DACLs but I think the 'Mark of the Web'
    will satisfy
    your need? Search it and see...
    Erik
    dparrott wrote:
    > We have a client who is using our web packaged program
    from a CD and they are
    > getting Active Content warnings and they do not like it.
    Is there a way to set
    > the active content to run when start the CD without
    using the registry? They
    > said something about doing it through discretionary
    access control list (DACL)
    > files.
    >
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Org.xml.sax error content not allowed in prolog

    Hi,
    I am running Jetty 6.x on SUSE and there is a webapp called pyjasper i am trying to run on it. the context maps fine and it displays the content however, when i use the applet in the webapp to create a report (.jasper) it gives me a org.xml.sax Parse exception: content not allowed in prolog.
    A little part of the error is pasted below:
    generating report /tmp/pyJasper/compiled-reports/6390c37d0ea810c7fae3e647c2f86817.jasper
    Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1039)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.commons.digester.Digester.parse(Digester.java:1647)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:115)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    2010-03-04 09:15:59.073::WARN: /pyJasper/jasper.py
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:115)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    I am guessing this is some sort of an error in xml parsing. I found couple of solutions on sun java forums but none of them worked for me. Right now I am trying to figure out whether this is being caused by the applet or the java itself.
    Apparently other people who use this applet do not have a problem and they have the exact same files as me. So I am not sure what exactly is causing tihs problem. Bit of a noob.
    Any help would be greatly appreciated.
    THANK YOU VERY MUCH!!!! :)

    Hi thanks you very much for the reply.
    In my message I forgot to mention that I edited my prologs to "<?xml version = "1.0" encoding = "UTF-8"?>" and the jetty.xml that has the server configuration has:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
    I apologize for the clarity of my message. I meant to say that I was wondering whether the problem is with the xm files that java has, or the xml files that are in the pyjasper package that I downloaded?
    I also checked for byte order mark using hex editor to see if those six characters were in front of my xml files. None of the files in the pyjasper package had the BOM so that solution did not work.
    Is there something wrong with the above xml prolog?
    I have been reading tons of different posts and stuf trying to figure this out for the past month but juts cannot seem to get it to work.
    Thanks.

  • Pop-Up Menus and active content errors - Help!

    I'm attempting to add pop-up menus to my navigation bar, to
    make my site more user-friendly, but to no avail:
    I've tried designing pop-up menus in Fireworks, then
    importing the html code in, but that gives me errors when I try to
    insert the bar. Then, I tried putting my menus in different layers,
    with a "show layer" behavior on the button, and a "hide layer"
    behavior attached to the roll-off of the layer, but my version of
    Dreamweaver won't attach a behavior to a layer.
    Then, I noticed the tech-note on this site for the fix to use
    pop-ups in a template, so I added pop-up menus directly to my
    navigational buttons using the wizard. So here's where my problem
    comes in. . .
    When I preview my page, it throws up an active content error,
    but will still run. I uploaded it to my remote server, but when I
    went to the url, no action takes place when I put my cursor over
    it. Anybody have any ideas on how to create a pop-up menu that
    won't throw up an active content error? I've seen them on plenty of
    websites before, but can't figure how to do them.
    Any light you could shed would be greatly appreciated!

    > I'm attempting to add pop-up menus to my navigation bar,
    to make my site
    > more
    > user-friendly, but to no avail:
    Sometimes, they make your site less user-friendly. So be
    careful.
    The DW/FW pop-up menus are usually something that should be
    avoided. They
    are very poorly thought out and implemented, and will likely
    cause you
    continuing problems. It's foolish to devote the time to them
    that could be
    more effectively be placed elsewhere, especially since there
    are better
    options that work right out of the box, so to speak. Please
    check the free
    and commercial options here -
    http://www.projectseven.com/.
    > Any light you could shed would be greatly appreciated!
    Don't use DW/FW pop-up menus.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Ally86" <[email protected]> wrote in
    message
    news:[email protected]...
    > I'm attempting to add pop-up menus to my navigation bar,
    to make my site
    > more
    > user-friendly, but to no avail:
    >
    > I've tried designing pop-up menus in Fireworks, then
    importing the html
    > code
    > in, but that gives me errors when I try to insert the
    bar. Then, I tried
    > putting my menus in different layers, with a "show
    layer" behavior on the
    > button, and a "hide layer" behavior attached to the
    roll-off of the layer,
    > but
    > my version of Dreamweaver won't attach a behavior to a
    layer.
    >
    > Then, I noticed the tech-note on this site for the fix
    to use pop-ups in a
    > template, so I added pop-up menus directly to my
    navigational buttons
    > using the
    > wizard. So here's where my problem comes in. . .
    >
    > When I preview my page, it throws up an active content
    error, but will
    > still
    > run. I uploaded it to my remote server, but when I went
    to the url, no
    > action
    > takes place when I put my cursor over it. Anybody have
    any ideas on how
    > to
    > create a pop-up menu that won't throw up an active
    content error? I've
    > seen
    > them on plenty of websites before, but can't figure how
    to do them.
    >
    > Any light you could shed would be greatly appreciated!
    >

  • Convert to active content

    I get a AC_RunActiveContnet.js warning when I try to run an
    online Flash file. It was my understanding that Dreamweaver was
    supposed to convert files to active content, or at least give you
    and option. I have Dreamweaver CS3. It is not converting to the
    AC_RunActiveContent.js file. Do I need an update? If so how do I
    get it. I could not find it for Dreamweaver CS3/Flash9.
    Thanks

    When you insert a flash file in DW, it creates a Scripts
    folder in your site
    for you. Inside that Scripts folder, you will find the
    AC_RunActiveContent.js file. Upload the Scripts folder to
    server. That
    should take care of your problem.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "SuJun" <[email protected]> wrote in message
    news:ffl0a5$se3$[email protected]..
    > I get a AC_RunActiveContnet.js warning when I try to run
    an online Flash
    file.
    > It was my understanding that Dreamweaver was supposed to
    convert files to
    > active content, or at least give you and option. I have
    Dreamweaver CS3.
    It
    > is not converting to the AC_RunActiveContent.js file. Do
    I need an
    update? If
    > so how do I get it. I could not find it for Dreamweaver
    CS3/Flash9.
    >
    > Thanks
    >

  • Active Content Update Issue

    I hope someone can help me! Here is the deal, I want to make
    a button that will open a blank page with a PDF document. I can get
    it to work with GETurl, but I cannot figure out how to apply active
    content update to the new page. It works fine on a Mac, but on a PC
    when the new window opens I get the warning messages and have to
    click the top bar and say "allow content etc.". Does anyone know
    what code I can use to tell the new html page to apply the active
    content update? Or can anyone tell me a better way to achive the
    same thing.
    Thanks

    qdog111711 wrote:
    > My client is complaining that several of his potential
    clients are unable to
    > see video on the website and the site itself runs
    sluggish. I thought that
    > maybe this issue relates to the "Active Content Update"
    that Microsoft released
    > several months ago for Internet Explorer. Does anyone
    know what the issue may
    > be or have had any similar experiences?
    Active Content has nothing to do with performance of the
    movie.
    It is in regard to licensing of the player technology -
    nothing else.
    Perhaps the clients do not have the latest player and low in
    resources
    machines ? Your movie seem overly big for what it does.
    Probably reducing
    quality of images and sound w/o losing much of an actual
    quality could cut
    the file down at least to 1MB, help the playback a bit.
    It could be real drainage for older machines.
    The video works for me just fine so my guess is they simply
    do not have
    compatible player.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Ampersand in XML causes error. Is there a workaround?

    I've discovered that an ampersand (&) anywhere in XML data (any content between the opening and closing tags) causes an error when the XML is imported. Does anyone know of a workaround for this? Some of my text needs to include ampersands.

    For details, please have a look at
    http://www.w3.org/TR/2006/REC-xml-20060816/#syntax
    Dirk

  • Using RSLs results in a mixed content warning in Chrome?  When did this start happening?

    Hello All,
    We've got a secure (delivered via HTTPS) Flex app that has been using RSLs for years.  Just today, I noticed that Chrome was showing a "mixed content" warning for our app.
    We're not getting this same warning in IE or Firefox.  I poured over the requests in Chrome's developer tools, and there were only two HTTP requests:
    http://fpdownload.adobe.com/pub/swz/crossdomain.xml
    http://fpdownload.adobe.com/crossdomain.xml
    These both appear related to the Adobe hosted Flex RSLs.
    I changed my compilation options to merge libraries into code (no RSLs).  As soon as I did this, the mixed content warning in Chrome went away (and so did these two HTTP requests).  Switch back to RSLs, and the mixed content warning comes back (along with the two HTTP requests).
    Turning off RSLs makes my app quite a bit fatter--over 600kb fatter.  That's a lot.  I want to use RSLs, like we've been doing in the past!  How can this be fixed?
    Chrome Version: 22.0.1229.94 m
    Flash Player Version: 11.4.31.110
    OS Version: Windows 7, 64 bit
    Complete User-Agent string:
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4

    After looking through the Build->Properties->Flex Build Path->Library Path settings, I found that the RSLs each have a "Deployment Path/URL" and "Policy file URL" value.  For instance, for the text layout RSL, we've got:
    Deployment Path/URL: http://fpdownload.adobe.com/pub/swz/tlf/1.0.0.595/textLayout_1.0.0.595.swz
    Policy file URL: http://fpdownload.adobe.com/pub/swz/crossdomain.xml
    I went through each of the RSLs and changed both deployment and policy URLs to use HTTPS.
    Once I did this, the mixed content warning in Chrome stopped showing up.
    But I'm still at a loss as to why this started happening in the first place.  As I indicated in my original post, we've had this app running for years and this is the first we've noticed a mixed content warning in any browser.  What's going on?
      -Josh

  • Quicktime Active content

    Does anybody know how to get rid of the box that makes you press the key board or hit enter to view the video. They play properly, it is the active content on ie.
    I know how to fix this with flash but not with QT
    thanks

    Opps...last link was wrong.
    This one does work but it had to be manually editing from an
    embedded QT
    format which is designed to add a separate audio track via an
    mp3. But DW
    did not automatically detect it as needed "repairing" and if
    I manually
    click on the convert button it causes it to fail.
    http://www.buddhapada.com/tests/qt-active-content-manual-edit.htm

  • Active Content: cannot change Scripts folder name?

    Using DW 8.0.2.
    After I accept the Active Content workaround to be applied to
    my pages, I'd like to change Scripts folder name to "scripts" or
    even move the scripts to my "jscript" folder, which already exists.
    When I do this DW correctly asks to update the page links, but even
    with the correct links the scripts does not run anymore.
    It seems to be caused by some JS code included in the
    scripts, which points to "Scripts" folder in site root. But I don't
    know enough JS to identify and modify this. Any help will be very
    welcome.

    Shouldn't happen. I have moved the AC .....js file many times
    to different
    folders and if the path is correct, everything works
    properly. Can you
    please post a link.
    You cannot lose until you give up !!!
    "Freiberger" <[email protected]> wrote in
    message
    news:eou61k$enn$[email protected]..
    > Using DW 8.0.2.
    >
    > After I accept the Active Content workaround to be
    applied to my pages,
    > I'd
    > like to change Scripts folder name to "scripts" or even
    move the scripts
    > to my
    > "jscript" folder, which already exists. When I do this
    DW correctly asks
    > to
    > update the page links, but even with the correct links
    the scripts does
    > not run
    > anymore.
    >
    > It seems to be caused by some JS code included in the
    scripts, which
    > points to
    > "Scripts" folder in site root. But I don't know enough
    JS to identify and
    > modify this. Any help will be very welcome.
    >

  • What does it mean when I receive this message in Firefox: embed-run-active-content.js

    When a new screen on a website I am visiting loads, I see the message "requires embed-run-active-content.js" is this a legitimate software message or is this a sign of malware? I cannot find anything referring to that particular phrase.

    Do you have any content blocking extensions installed?
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Active content and templates aren't playing nice

    All the inside pages of a site are based on the same
    template. Here is the catch: about half of them and the index page
    contain some form of active script.
    The problem is I can't get the pages to accept the script
    without detatching them from the template. I do NOT want to do
    this. I must be missing something simple. How do I get this to
    work?
    http://korbyimagery.net/
    Here it is on the testing server before active content was
    added. (before it was broken)
    http://www.asthma-allergy.com:800/index.asp
    after some was added.
    Thanks in advance.

    You realize that your page has no navigation when javascript
    is disabled,
    due to your all-javascript menu approach? This means that it
    will not be
    spidered, and it is not accessable....
    Also, I am getting this error in IE6 when the page loads - at
    the top of the
    page. I'm not sure why you are getting that.
    XML error: XML_ERR_NAME_REQUIRED at line 7
    I'd fix the coding errors there first, and then attack the
    Flash thing....
    http://validator.w3.org/check?verbose=1&uri=http://korbyimagery.net/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "smkorby" <[email protected]> wrote in
    message
    news:eko2ca$ejo$[email protected]..
    > All the inside pages of a site are based on the same
    template. Here is the
    > catch: about half of them and the index page contain
    some form of active
    > script.
    > The problem is I can't get the pages to accept the
    script without
    > detatching
    > them from the template. I do NOT want to do this. I must
    be missing
    > something
    > simple. How do I get this to work?
    >
    >
    http://korbyimagery.net/
    > Here it is on the testing server before active content
    was added. (before
    > it
    > was broken)
    >
    >
    http://www.asthma-allergy.com:800/index.asp
    > after some was added.
    >
    > Thanks in advance.
    >

  • Adobe Active Content Fix

    Just a note to Adobe and a fair warning to those using Flash.
    The Adobe
    Active Content deployment fix seems to be problematic on
    complex pages.
    That is, any page that contains more than just Flash,
    especially other
    scripts. We're urging our customers not to use it and urge
    Adobe to have
    a serious look at this workaround. Strictly in terms of
    scripting
    protocol, and with respect to code aesthetics, it's an
    "interesting"
    piece of work and could be responsible for page hangs in some
    browsers.
    Al Sparber - PVII
    http://www.projectseven.com
    Popup Menus | Image Galleries | CSS Tutorials & Templates
    Newsgroup: news://forums.projectseven.com/pviiwebdev/
    CSS Newsgroup: news://forums.projectseven.com/css/
    DW Newsgroup: news://forums.projectseven.com/dreamweaver/

    Can you be specific about problems you have seen with it, Al?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Al Sparber- PVII" <[email protected]> wrote in message
    news:ea2ev2$lfv$[email protected]..
    > Just a note to Adobe and a fair warning to those using
    Flash. The Adobe
    > Active Content deployment fix seems to be problematic on
    complex pages.
    > That is, any page that contains more than just Flash,
    especially other
    > scripts. We're urging our customers not to use it and
    urge Adobe to have a
    > serious look at this workaround. Strictly in terms of
    scripting protocol,
    > and with respect to code aesthetics, it's an
    "interesting" piece of work
    > and could be responsible for page hangs in some
    browsers.
    >
    > --
    > Al Sparber - PVII
    >
    http://www.projectseven.com
    > Popup Menus | Image Galleries | CSS Tutorials &
    Templates
    >
    > Newsgroup: news://forums.projectseven.com/pviiwebdev/
    > CSS Newsgroup: news://forums.projectseven.com/css/
    > DW Newsgroup:
    news://forums.projectseven.com/dreamweaver/
    >
    >
    >
    >
    >
    >

  • Apply Active Content Update

    Hi guys this is my first post, and well usually i fund every
    solution, but now is getting on my nervs!!
    This is the deal i did every thing about the new update from
    flash 8, (Apply Active Content Update), every thing seems good so
    far, but now is showing the swf with out the "frame ", and notice
    that align my movie in other place!!!, i change the WMODE value,
    cause it was on WMODE=Window, and i thought that was the issue, but
    no... look at this example
    http://www.targetproductions.com/barra.html
    Text
    well, i'm working with PHP and CSS,
    and i'm using this pice of code
    (below)
    for this web site
    link
    well i can not align default, i try aling=default, on the
    AC_FL_RunContent function but nothing can any one help me, pls
    TKS

    FIREFOX FIX FOR VS.NET 2005 USERS:
    This issue happens when using Visual Studio 2005 as the
    editor.
    I copied the <HEAD> portion of a page that worked and
    pasted it in the bad page. When saving the file in the VS editor it
    gives me this message:
    Some Unicode characters in this file could not be saved in
    the current
    codepage. Do you want to resave this file as Unicode in order
    to maintain
    your data? Yes, No, Save With Other Encoding or Cancel
    I selected NO and everything is fine.

  • Org.xml.sax.SAXParseException: Content is not allowed in prolog.

    Hi All,
    Currently i m doing some practice on JSTL and following few examples from this link http://java.sun.com/developer/technicalArticles/javaserverpages/faster/
    while doing xml-ex1.jsp
    This is xml-ex1.jsp code
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>
    <html>
    <head>
    <title>JSTL Support for XML</title>
    </head>
    <body bgcolor="#FFFFCC">
    <h3>Books Info:</h3>
    <c:set var="xmltext">
    <books>
    <book>
    <title>Book Title A</title>
    <author>A. B. C.</author>
    <price>17.95</price>
    </book>
    <book>
    <title>Book Title B</title>
    <author>X. Y. Z.</author>
    <price>24.99</price>
    </book>
    </books>
    </c:set>
    <x:parse xml="${xmltext}" var="output"/>
    <b>The title of the first book is</b>:
    <x:out select="$output/books/book[1]/title"/>
    <br>
    <b>The price of the second book</b>:
    <x:out select="$output/books/book[2]/price"/>
    </body>
    </html>
    While running jsp page i m getting follwing error
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSource(ParseSupport.java:227)
         at org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSourceWithFilter(ParseSupport.java:193)
         at org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseReaderWithFilter(ParseSupport.java:199)
         at org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseStringWithFilter(ParseSupport.java:206)
         at org.apache.taglibs.standard.tag.common.xml.ParseSupport.doEndTag(ParseSupport.java:138)
         at org.apache.jsp.jsp.xml_002dex1_jsp._jspx_meth_x_parse_0(org.apache.jsp.jsp.xml_002dex1_jsp:152)
         at org.apache.jsp.jsp.xml_002dex1_jsp._jspService(org.apache.jsp.jsp.xml_002dex1_jsp:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at
    NOTE :- I m using Tomcat 5.5.14 .
    Please help me out how to resolve this problem
    Thanks & Regards
    Rupesh Kumar

    From what I understand, it has nothing to do with your JSP and all to do with the XML it's supposed to parse. It sounds malformed. Check the first tag.

Maybe you are looking for