featureType should be without the prefix so just "points". Depending on the OpenLayers version that you use you might need to set featureNS (not needed for 2.13 or later, maybe even 2.12 has the automatic detection, unsure).
Use something like Firebug / Chrome web inspector to track your XHR response. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Aug 15, 2013, at 3:30 PM, [email protected] wrote: > Hi everybody, I am new in Openlayers world. I am writing my thesis in > computer science about geospatial database. > I want use a OpenLayers WFS that refers to this WFS (made using deegree) > http://localhost:8080/services/WFSgeoDB. > This is what I wrote in my JSP: > > var map = new OpenLayers.Map('map'); > > var WFSgeoDB=new OpenLayers.Layer.Vector("WFS", { > strategies: [new OpenLayers.Strategy.BBOX()], > protocol: new OpenLayers.Protocol.WFS({ > version: "1.0.0", > url: "http://localhost:8080/services/WFSgeoDB", > featureType: "app:points", > }) > }); > > var wms = new OpenLayers.Layer.WMS ( > "OpenLayers WMS", > "http://vmap0.tiles.osgeo.org/wms/vmap0", > {layers: 'basic'} > ); > > map.addLayers([wms, WFSgeoDB]); > map.zoomToMaxExtent(); > > I can see the map but I can't see the data from my WFS (7 LineString and 7 > Points from my database). > Where is my error? Is there something that I miss to view the data from my > db? I need help. > > Thanks so much > Andrea > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
