myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject RE: how to encode url
Date Mon, 11 Feb 2008 10:23:12 GMT
so how does your encoded URL look like and where do you like to use it?
Is your problem that you do not have the sessionId encoded or that single characters are 'wrong'?

just to catch the obvious misunderstanding.
there is a difference between HTML escaping and URL encoding
example:
in an URL
.) a ' ' (space) will be converted to %20
.) & will not be converted 

in HTML escaping
.) ' ' (space) will not be converted
.) & -> &amp;


LieGrü,
strub

--- Dave <javaone9@yahoo.com> schrieb:
>   For redirecting to a URL
>    
>   URI: http://www.domain1.com/foo.jsf
>   QueryString:  url=http://domain2.com/?q=bar
>    
>   http://www.domain1.com/foo.jsf?url=http://domain2.com/?q=bar
>    
>   where url is param name, http://domain2.com/?q=bar is param value.
>    
>   How to encode the URL?  I tried ExternalContext:
>    
>   String encodedURL = externalContext.encodeResourceURL(aURL)
>    
>   but the URL is not changed
>    
>   Thanks for help
>   Dave



      Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
http://de.yahoo.com/set

Mime
View raw message