How to redirect to ftp: // url using Spring Webflow?

I'm trying to use Spring Webflow to redirect to the computed url of an ftp server, but the following lines are specified in the ExternalRedirect code:

} else if (location.startsWith("http://") || location.startsWith("https://")) {
    sendRedirect(location, request, response);
} else {
    sendServletRelativeRedirect(location, request, response);
}

      

Is there a way to get Spring Webflow to redirect to, say, ftp://example.com/ ?

+1


source to share


1 answer


You should consider using this: http://www.tuckey.org/urlrewrite/



I have a setup with every spring project I work on.

+1


source







All Articles