Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

url encoding - I am sure this has been asked before

843840Mar 31 2009 — edited Mar 31 2009
From an external organization I get a URL that looks something like this:

http://some.server.com.com/admin?hzA=5261efe5228e687f9edb1c48a7481002:test_user:_Welcome_last__first:7Y918Pl6:1238533529

It is stored in my session bean and used in an out put link:

<h:outputLink id="Link1" style="font-size: 12px" target="#{SessionBean1.target}" value="#{SessionBean1.theLink}">
<h:outputText id="Link" value="Go Here"/>


When I hover over the link it appears as above, when I click on the link the address in address has %253A in place of all the colons, like this:

http://some.server.com.com/admin?hzA=5261efe5228e687f9edb1c48a7481002%253Atest_user%253A_Welcome_last__first%253A7Y918Pl6%253A1238533529

Of course the second link does not work (if I paste the first link in a browser it works fine).

Any ideas on how to overcome this? I have tried using URLEncoder.encode() with no luck. I have no control over the URL sent to me.

(BTW, some.server.com is running some falvor of linux and apache, that is all I know)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2009
Added on Mar 31 2009
2 comments
1,305 views