Announcement Announcement Module
No announcement yet.
redirect problem with encoded query string Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • redirect problem with encoded query string


    I use SpringMVC 3.04

    My Application help users to post links on social site. The posted link is sent as a query string parameter so it must be URLEncoded. For example:

    So one of my controller make a redirect to the selected site in the return statement of a method.:
    return "redirect:"
    In this case the posted URL in not Encoded and the target site issue an error.
    If I URLEncode the query string params value like this:
    return "redirect:
    Spring re-encode the url (it encode the '%' char as %25) so the link becomes :

    I try to put all query string parameters in the Model object and only return "redirect:", but the result is always the same

    How can I make it work fine????