cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@anyware-tech.com>
Subject Re: How to send parameters to a URL via http?
Date Tue, 25 Oct 2005 14:31:37 GMT
* Brian Burridge:
> Yes I understood that. Here is the flow I am using:
> 
> function post2requestUri{
> var queryString = "";
> for (var i in cocoon.getParameterNames){
> queryString += i + "=" + cocoon.request.getParameter(i) + "&";
> }
> cocoon.sendPage("http://localhost:8080/girscom/TestCocoon.jsp?"+queryString);
> }

be careful to encode the parameters using URLEncoder.encode().
And also you may encounter encoding problems with this code
depending on your settings in web.xml and the encoding used by
your servlet container.
-- 
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/

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


Mime
View raw message