Thanks for your response. I have copied the bit of code below. For the Layers
bit of the code i have tried 3 different things, 
1) i first tried only including the workspace name 'mapapp', my application
opens correctly but i get the following error message: 
"<serviceexception code="LayerNotDefined" locator="layers">
      Could not find layer mapapp:mapapp
</serviceexception>"
2) Then i decided to spell out the layers i want to query, (in the code
below it is commented out). I want to query 4 out of the 5 layers, so i
comment the "Layers: 'mapapp',", and tried typing in each of the layers
name, in this case i get the following error
"QUERY_LAYERS contains layers not cited in LAYERS. It should be a proper
subset of those instead"
In both cases above my application works but the messages show up in the
bottom when the feature is clicked, i have attached screenshots of both the
error messages. 
<http://osgeo-org.1560.x6.nabble.com/file/n5148070/error2.jpg> 
<http://osgeo-org.1560.x6.nabble.com/file/n5148070/error1.jpg> 

CODE IS BELOW

// support GetFeatureInfo
    map.events.register('click', map, function (e) {
        document.getElementById('nodelist').innerHTML = "Loading... please
wait...";
        var params = {
            REQUEST: "GetFeatureInfo",
            EXCEPTIONS: "application/vnd.ogc.se_xml",
            BBOX: map.getExtent().toBBOX(),
            SERVICE: "WMS",
            INFO_FORMAT: 'text/html',
            QUERY_LAYERS: map.layers[0].params.LAYERS,
            FEATURE_COUNT: 50,
           Layers: 'mapapp',                
//Layers:'mapapp:completed_projects_phd_mphil,mapapp:completed_projects_msc,mapapp:projectsinprogress_phd_mres,mapapp:searg_reports,
mapapp:se_asia',
//Layers:'mapapp:completed_projects_phd_mphil,mapapp:completed_projects_msc,mapapp:projectsinprogress_phd_mres,mapapp:searg_reports',
            WIDTH: map.size.w,
            HEIGHT: map.size.h,
            format: format,
            styles: map.layers[0].params.STYLES,
            srs: map.layers[0].params.SRS
        };

Thanks 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GetFeatureInfo-to-Geoserver-tp3802214p5148070.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to