Can GeoServer return shapefiles

Can GeoServer return shapefiles?

Yes it can. In the WFS URL you need to set the OUTPUTFORMAT parameter to SHAPE.
Here is an example:

http://localhost:8080/geoserver/wfs?
request=getfeature&
service=wfs&
version=1.0.0&
typename=states&
outputformat=SHAPE

Comments

Anonymous says:

But Where do the shapfile go after the submit?

I get

java.io.FileNotFoundException: C:\Program Files\Tomcat5states.shp 

Some other settings somewhere? 

Anonymous says:

If I check GetCapabilities I find no outputformat SHAPE. I do see an outputformat SHAPE-ZIP.

If I select this one i receive an empty file.

khudak says:

I got this when I tried to return a shapefile on Geoserver 1.3.0:

http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=states&outputformat=SHAPE 

<ServiceException>
output format: SHAPE not supported by geoserver  
</ServiceException>

otroccaz says:

View Attachments (0) Info