<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Phillippe, thanks by your answer, but my problem is that i don't
have access at code that will mount the redirect, i am using the
opencms external link and, in this case i put the url in the
specified field and the opencms make the redirect.<br>
<br>
if i put a filter in web.xml of opencms for to filter all redirect
and make this encode maybe work, but i want something more simple
that this.<br>
<br>
[]s<br>
Fabio Gomes<br>
Oriens Tecnologia<br>
55 31 2191-8709<br>
<br>
Em 07-12-2011 22:13, Philippe Sevestre escreveu:
<blockquote
cite="mid:CAK82685JRR1ZMAGQQD9kLdKyiiWLFnjSaMFCzyOiunLLEBLs2g@mail.gmail.com"
type="cite">Did you try to encode the URL before passing it to
sendRedirect ?
<div><br>
</div>
<div>Since this is a redirect, you should use something like this:</div>
<div><br>
</div>
<div>response.sendRedirect(response.<span class="Apple-style-span"
style="font-family: 'Times New Roman'; font-size: 15px;
font-weight: bold; background-color: rgb(255, 255, 255); ">encodeRedirectURL("/someurl?param=ÁÉÍÓÚ"))</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New
Roman'; font-size: 15px; font-weight: bold; background-color:
rgb(255, 255, 255); "><br>
</span></div>
<div><br>
<div class="gmail_quote">On Mon, Oct 24, 2011 at 8:22 AM, Fabio
Gomes <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:fabio@oriens.com.br">fabio@oriens.com.br</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000"> <span
style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(245,245,245)"><span>Hello,</span><span> </span><span>any
suggestions</span><span>, the</span><span> </span><span>problem
can be reproduced</span><span> </span><span>by placing
the</span><span> </span><span>scriptlet</span><span>
response.sendRedirect</span><span> </span><span>(</span><span>"some</span><span> </span><span>url")</span><span>;</span><span> </span><span>in
some</span><span> </span><span>jsp page</span></span>.<br>
<br>
<br>
[]s<br>
Fabio Gomes
<div class="im"><br>
Oriens Tecnologia<br>
<a moz-do-not-send="true"
href="tel:%2B55%2031%202191-8709"
value="+553121918709" target="_blank">+55 31 2191-8709</a><br>
<br>
</div>
Em 19-10-2011 16:33, Fabio Gomes escreveu:
<div class="im">
<blockquote type="cite"> Hi Folks, is there a way to
make opencms encode the url before sending the
redirect, when the user clicks in a opencms link ? I'm
having problems with encoding because the link has
parameters with accents, for example, has a url
<host:port/page?paramenter=Solidário, in word
"Solidário" appears strange character as "?", this
only hapening in redirect. <br>
<br>
</blockquote>
<blockquote type="cite">I put this link in a jsp page as
"response.sendRedirect()" and when was send, show this
characters. <br>
<br>
[]s <br>
Fabio Gomes <br>
Suporte Técnico <br>
Oriens Tecnologia <br>
<a moz-do-not-send="true"
href="tel:%2B55%2031%202191-8709"
value="+553121918709" target="_blank">+55 31
2191-8709</a> <br>
</blockquote>
</div>
</div>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the
list, please visit<br>
<a moz-do-not-send="true"
href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"
target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div style="background-color:transparent">
<div dir="ltr">
<table
style="border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-collapse:collapse">
<colgroup><col width="159"><col width="389"></colgroup><tbody>
<tr style="height:0px">
<td
style="border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dotted;border-right-style:dotted;border-bottom-style:dotted;border-left-style:dotted;border-top-color:rgb(170,
170, 170);border-right-color:rgb(170, 170,
170);border-bottom-color:rgb(170, 170,
170);border-left-color:rgb(170, 170,
170);vertical-align:top;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px">
<div style="text-align:center"><img
moz-do-not-send="true"
src="https://lh6.googleusercontent.com/ZtP5uD_rN8BfBxgbSGZItWMo45Rr0K0ny3yw5xM7ERIpgp6ajiHTLef6Gpt1v4R9MnovzROH-MQmUT8BgsB4S-GBkm12HhLK_-b3gCJpmQMKy039TeE"
height="65px;" width="65px;"></div>
<p dir="ltr"
style="text-align:center;margin-top:0pt;margin-bottom:0pt"><a
moz-do-not-send="true"
href="http://www.lighthouse.com.br/"
target="_blank"><span
style="font-size:8pt;font-family:Arial;color:rgb(0,
0,
153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">www.lighthouse.com.br</span></a><span
style="font-size:8pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></p>
<span
style="font-size:11pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></td>
<td
style="border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dotted;border-right-style:dotted;border-bottom-style:dotted;border-left-style:dotted;border-top-color:rgb(170,
170, 170);border-right-color:rgb(170, 170,
170);border-bottom-color:rgb(170, 170,
170);border-left-color:rgb(170, 170,
170);vertical-align:top;padding-top:7px;padding-right:7px;padding-bottom:7px;padding-left:7px"><span
style="font-size:14pt;font-family:Arial;background-color:transparent;font-weight:bold;font-style:italic;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Philippe
Sevestre</span><span
style="font-size:14pt;font-family:Arial;background-color:transparent;font-style:italic;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
</span><span
style="font-size:11pt;font-family:Arial;background-color:transparent;font-style:italic;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">(</span><span
style="font-size:11pt;font-family:Arial;color:rgb(28,
81,
168);background-color:transparent;font-style:italic;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"><a
moz-do-not-send="true"
href="mailto:phil@llighthouse.com.br"
target="_blank">phil@lighthouse.com.br</a></span><span
style="font-size:11pt;font-family:Arial;background-color:transparent;font-style:italic;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">)</span><br>
<span
style="font-size:11pt;font-family:Arial;background-color:transparent;font-weight:bold;font-style:italic;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Tel.:</span><span
style="font-size:11pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
+55 (11) 5502-3222</span><br>
<span
style="font-size:11pt;font-family:Arial;background-color:transparent;font-weight:bold;font-style:italic;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Cel.:</span><span
style="font-size:11pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
+55 (11) 9735-2586</span><br>
<span
style="font-size:8pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Rua
Samuel Morse, 120 cj 64</span><br>
<span
style="font-size:8pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">04576-060
São Paulo, SP – Brasil
</span><span
style="font-size:11pt;font-family:Arial;background-color:transparent;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
</body>
</html>