java - Struts2 - redirect request to another application - video -
i have struts2 application , need show inside video being showed in web app.
this code shows video. ip not accessible in internet, on server struts app located.
<img src="http://<ip_from_other_server/showvideo">
i need action in struts2 can make request , forward response other server. possible?
besides struts solution try setup (apache) proxy, redirect request video server. don't have huge software stack. examples here: apache mod_proxy
but if decide use struts solution, here ideas:
- create action possibility connect video server, maybe fileoutputstream answer: download file java
- use file (saved temporary somewhere), open stream , retur in
<img href="mypicture">
-action, maybe here: struts2 servletresponseaware or here struts stream result
if want, can little bit more in detail.
Comments
Post a Comment