cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Lewis" <richardle...@fastmail.co.uk>
Subject raw-request-param
Date Thu, 25 Nov 2004 17:14:51 GMT
Hello Cocooners,

I am implementing a search engine for my Cocoon site as a Java servlet.
All Cocoon has to do is send the search terms from an HTML form to the
servlet and then send the results through a stylesheet:

<map:match type="request-parameter" pattern="search">
    <map:generate
    src="http://localhost/search?terms={raw-request-param:search}" />
    ......
</map:match>

It works, except when the request parameter 'search' has a space in it,
it is passed on as "term1 term2" where it should be "term1+term2". This
causes the sitemap to break because there is a space in the map:generate
src URI above.

Does anyone know whats wrong with this?

Cheers,
Richard

-- 
  Richard Lewis
  richardlewis@fastmail.co.uk


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message