Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open Page using Servlet

 
suraj sheikh
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Need help to open a web page using servlet. But the requirement is as follows.

The web page which will open should be opened by using the servers internet/intranet connection, not the clients internet connection.
i.e the client doesnt have access to the web page/ip address, only it can be opened on the server.

Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing prevents you from using a java.net.HttpURLConnection in a servlet the same way you would use it in a client. Naturally you must provide for handling the various error conditions.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic