How to submit a form to an external web link (not part of the current web application)?
In struts action, all links are interpreted relative to web context and therefore "forward" object specified in struts-config does not work. e.g. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { ActionForward forward = mapping.findForward("constructionPage"); } // Strtus-config: <forward name="constructionPage" path="http://www.externalformprocessor.com"/> Web context: myapplication URL in <forward> tag of the struts-config is evaluated as "/myapplication/http://www.externalformprocessor.com" which obviously is not a valid URL. One approach is to append all form parameters as query string in URL and use response.sendRedirectTo(...) method of HTTPServeletRequest class but this is not desirable for security reasons. Does any one know any alternative approach to submit forms to external sites using POST? Any suggestion will be appreciated. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.