Question: I am using phonegap. I need to load external website depending on the input. The input data are passed as an Object from previous page.Then combined to generate the url. URL will be stored in variable $link. And then use `load()` to get the website. However it seems not work for putting url variable in `load()`. How can I solve it? 

```
$(document).on( "pagebeforeshow", "#page1", function( e ) {
            var word2 = passDataObject1;
            var method2 = passDataObject2;
            var location2 = passDataObject3;
            switch(location2)
            {
            case "Entire_Collection":
                location2="%29+";
            break;
            case "Reference_Collection":
                location2="%29+c%3A4";
            break;
            }

            var $link = 'http://....'+method2+word2+location2+'.....';
            $('#result1').load($link);
        });

```

Answer: 
remove following from web.xml

```
<taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/lib/jstl-1.2.jar</taglib-location>
</taglib>

```

You do not need this anymore since Servlet 2.0 specification. And also, **taglib-location** is used to specify the path of \*.tld file.
This error message is always caused by the invalid XML content in the beginning element. For example, extra small dot “.” in the beginning of XML element.

[see here](http://www.mkyong.com/java/sax-error-content-is-not-allowed-in-prolog/)