<div dir="ltr">That is the "normal" way to do it.... <div><br></div><div style>You also have the option to provide a proxy url that does exactly what you want.</div></div><div class="gmail_extra"><br clear="all">
<div><br>--<br><br>Med venlig hilsen / Kind regards<br><br>Tue Topholm<br>Sugee<br>Tlf: +45 32 13 32 32<br>W: <a href="http://www.sugee.dk" target="_blank">http://www.sugee.dk</a></div>
<br><br><div class="gmail_quote">2012/12/27 pierre de fermat <span dir="ltr"><<a href="mailto:fermatslittletheorem@gmail.com" target="_blank">fermatslittletheorem@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
I am creating a web app (dojo/struts/postgres/postgis) which amongst<br>
other things, need to deliver GIS capabilities.<br>
<br>
The base infrastructure (security,logging,caching etc) is in place and<br>
other modules are under development. I took up openlayers as my<br>
frontend js for rendering maps from geoserver.<br>
<br>
For other modules, the request (ajax and regular) goes through my<br>
struts filter layers -> action class->dao->db route. However,<br>
openlayer requires configuration of wms services URL (provided by the<br>
geoserver) . I can't direct those requests directly to geoserver. I<br>
need my app to trap requests do bunch of validations and then process<br>
it. I am sure any app developer would have gone through the same issue<br>
that i am facing right now.<br>
<br>
i am thinking of 'tricking' openlayer by giving the URL of a struts<br>
action which captures the parameters from the request URL, and then<br>
requesting the geoserver internally for the response.This way i could<br>
manage session, security etc and keep geoserver internally facing. Is<br>
this recomendded? Is there a better way to make openlayer work with<br>
external web app?<br>
<br>
Regards<br>
Pierre<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br></div>