> > > Hi everyone, I'm a newbie here. > What I'm trying to do is quite simple, but I don't know how > to track down > the error. > > All I want to do is pass a search phrase to an external file that will > return generated XML. I'm doing this as so: > > <map:generate > src="http://www.searchserver.com/search.php?keyword={raw-reque > st-param:keyword}" > /> > > The problem is if the search phrase contains a space like > mysearch?keyword=north+america or > mysearch?keyword=north%20america, only the > first word is passed through. So in this example the result would be > equivalent to mysearch?keyword=north.
But when having a form input field for a search, you probably get north+america. Isnt that enough? Otherwise, try a post instead of a get, and try to use raw-request-param, or request-param, or request:queryString, or urlencode the request Regards Ard > > If I just do a straight redirect it work perfectly, like so: > > <map:redirect-to > uri="http://www.searchserver.com/search.php?keyword={raw-reque > st-param:keyword}"/> > > but I don't want to direct users to a different host. > > Any ideas are appreciated. > -- > View this message in context: http://www.nabble.com/Trouble-pushing-parameters-with-spaces-to-file-generator-src-tf2714989.html#a7569991 Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
