CGI Mode itemnquery via Java returns no results
SUBSCRIBE MAPSERVER-USERS Maciej Marczewski
macioos01-lbs at YAHOO.PL
Sat Aug 18 16:49:41 PDT 2007
:)
Solution found by FrankW. Thanks a lot :)
There was a problem with conversion of white spaces. Browser converts white
spaces to %20 when processing a request, and the request is valid then. Java
don't do it, and it appears that request containing qstring with white
spaces is not valid.
Solution is to hard code all whitespaces to %20, or to use a java method
that do this for you.
So once again to clarify:
(...)&qstring=('[NAZWACZ2]' ne '') <- WRONG = produces no results
(...)&qstring=('[NAZWACZ2]'%20ne%20'') <- VALID = produces results.
A bit confusing.
Thanks a lot for help, FrankW.
Maciej Marczewski
Gdansk University of Technology
Poland
More information about the MapServer-users
mailing list