<p>Struts 1.3 application.  Main website is NOT served by struts/Java.  I need to forward the result of a struts action to a page in the website, that is outside of the struts context.  Currently, I forward to a JSP in context and use a meta-refresh to forward to the real location.  That seems kinda sucky.  Is there a better way?</p>

[{'answer_id': 64049, 'author': 'shrisha', 'author_id': 6466, 'author_profile': 'https://Stackoverflow.com/users/6466', 'pm_score': 4, 'selected': True, 'text': '<p>You can\'t "forward", in the strict sense. Just call <code>sendRedirect()</code> on the <code>HttpServletResponse</code> object in your <code>Action</code> class\'s <code>execute()</code> method and then, <code>return null</code>.</p>\n\n<p>Alternately, either call <code>setModule()</code> on the <code>ActionForward</code> object (that you are going to return) or set the path to an absolute URI.</p>\n'}, {'answer_id': 66294, 'author': 'davetron5000', 'author_id': 3029, 'author_profile': 'https://Stackoverflow.com/users/3029', 'pm_score': 0, 'selected': False, 'text': '<p>I ended up doing response.sendRedirect().</p>\n'}, {'answer_id': 1006703, 'author': 'Kevin Hakanson', 'author_id': 22514, 'author_profile': 'https://Stackoverflow.com/users/22514', 'pm_score': 0, 'selected': False, 'text': '<p>If this was still in the web application, you could use <a href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatcher.html" rel="nofollow noreferrer">ServletContext.RequestDispatcher</a>?  That\'s how the Struts doForward() method works.  However, to go outside Struts/Java, you need the sendRedirect().</p>\n\n<pre><code>RequestDispatcher rd = getServletContext().getRequestDispatcher(uri);\nrd.forward(request, response);\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/63930', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3029/']