[Geoserver-users] WFS request from a JSP script

Hi,

I think it's kinda off-topic, but... How do I make a WFS request in my
JSP/Java code? I've got my getFeature string but I don' know how to
issue it to my GeoServer/WFS server.

I don't need to handle the result. Just the whole XML as output is fine.

Thanks,
Celso

Hi Luiz,

I can think of a couple of ways to do this.

You could forward to or include another page (in this case a geoserver request) using a servlet (the appropriate methods (forward,include) are on the RequestDispatcher interface. You can also use the jsp:forward and jsp:include tags to do the same thing.

You could make the request from the client using JavaScript/Ajax and include it in your html.

You could do this from java code using a simple http connection. A couple of examples here.

http://javaalmanac.com/egs/java.net/Post.html

Hope that helps.

-Justin

Luiz Celso Gomes Jr. wrote:

Hi,

I think it's kinda off-topic, but... How do I make a WFS request in my
JSP/Java code? I've got my getFeature string but I don' know how to
issue it to my GeoServer/WFS server.

I don't need to handle the result. Just the whole XML as output is fine.

Thanks,
Celso

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org