• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to acces URL from server

 
Alex Zeit
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Could someone suggest a way to access a resource from server not from client?
The final url is behind a firewall and only server where Tomcat runs can go trough this firewall.
Actually we need a link that after clicking on it on the Client PC in the Browser will go to Tomcat server and from there to the final url.
Thanks a lot in advance
Alex
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65528
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this "final" URL in the same web application?
 
Alex Zeit
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot fro your answer. The final url is the url of the machine that can be accessed only from the server where Tomcat is running. We can place this url in the same web application. I was looking on URL Rewrite Filter (http://tuckey.org/urlrewrite/), but will it really make things easear?
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So effectively your Tomcat server has to act as a proxy to the "final URL"
The most obvious way would be to make an HTTP request from the Tomcat server to the final machine , and then just send the response from that back on your Tomcat servers response.

You might consider using the <c:import> JSTL tag - it can work with remote resources as well as local ones.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!