I'm writting an Action and it needs to use the response from another URL (outside the site where the action resides). The URL I'm requesting returns a JSON string and I'm going to parse it and render my page based on its value. Could anyone tell me how to get the response from the URL outside my site? It seems that a RequestDispatcher cannot work since it cannot go outside the current context. Does Struts2 has a mechanism to do such job? Thanks in advance.
Plus: I'm not integrate the requested JSON into JSP using AJAX, I need to get it in Action, so any AJAX method seems not work for my case.