[opencms-dev] Opencms link Problema with url encoding

Fabio Gomes fabio at oriens.com.br
Fri Dec 9 19:04:14 CET 2011


Yes, but the client want a external link, we send this solution to they 
and are using until a final solution appear.
They too know that this is not a simple question.

So, thank you by your answer.

[]s
Fabio Gomes
Oriens Tecnologia
55 31 2191-8709

Em 09-12-2011 15:51, Philippe Sevestre escreveu:
> Instead of creating a link object, why don't you create a simple jsp 
> page that does the same ?
>
>
> On Fri, Dec 9, 2011 at 8:19 AM, Fabio Gomes <fabio at oriens.com.br 
> <mailto:fabio at oriens.com.br>> wrote:
>
>     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.
>
>     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.
>
>
>     []s
>     Fabio Gomes
>     Oriens Tecnologia
>     55 31 2191-8709 <tel:55%2031%202191-8709>
>
>     Em 07-12-2011 22:13, Philippe Sevestre escreveu:
>>     Did you try to encode the URL before passing it to sendRedirect ?
>>
>>     Since this is a redirect, you should use something like this:
>>
>>     response.sendRedirect(response.encodeRedirectURL("/someurl?param=ÁÉÍÓÚ"))
>>
>>
>>     On Mon, Oct 24, 2011 at 8:22 AM, Fabio Gomes <fabio at oriens.com.br
>>     <mailto:fabio at oriens.com.br>> wrote:
>>
>>         Hello,any suggestions, theproblem can be reproducedby placing
>>         thescriptletresponse.sendRedirect("someurl");in somejsp page.
>>
>>
>>         []s
>>         Fabio Gomes
>>
>>         Oriens Tecnologia
>>         +55 31 2191-8709 <tel:%2B55%2031%202191-8709>
>>
>>         Em 19-10-2011 16:33, Fabio Gomes escreveu:
>>>          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.
>>>
>>>         I put this link in a jsp page as "response.sendRedirect()"
>>>         and when was send, show this characters.
>>>
>>>         []s
>>>         Fabio Gomes
>>>         Suporte Técnico
>>>         Oriens Tecnologia
>>>         +55 31 2191-8709 <tel:%2B55%2031%202191-8709>
>>
>>         _______________________________________________
>>         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
>>         http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>>
>>
>>
>>
>>     -- 
>>
>>     www.lighthouse.com.br <http://www.lighthouse.com.br/>
>>
>>     	Philippe Sevestre(phil at lighthouse.com.br
>>     <mailto:phil at llighthouse.com.br>)
>>     Tel.:+55 (11) 5502-3222 <tel:%2B55%20%2811%29%205502-3222>
>>     Cel.:+55 (11) 9735-2586 <tel:%2B55%20%2811%29%209735-2586>
>>     Rua Samuel Morse, 120 cj 64
>>     04576-060 São Paulo, SP -- Brasil
>>
>>
>>
>>
>>     _______________________________________________
>>     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
>>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>
>     _______________________________________________
>     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
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
>
>
> -- 
>
> www.lighthouse.com.br <http://www.lighthouse.com.br/>
>
> 	Philippe Sevestre(phil at lighthouse.com.br 
> <mailto:phil at llighthouse.com.br>)
> Tel.:+55 (11) 5502-3222
> Cel.:+55 (11) 9735-2586
> Rua Samuel Morse, 120 cj 64
> 04576-060 São Paulo, SP -- Brasil
>
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111209/b045c7c3/attachment.htm>


More information about the opencms-dev mailing list