how to call internal html from cakephp?

How a JAVA servlet call an remote web page (servlet or html file) then display the content?

  • I need to create a servlet which would make a http request to a remote site. After it gets the content, it would modify the content then display it. For example, once the servlet starts, it will call "XYZ.com/...", and get the content from the "XYZ.com/..." and display the modified content on the browser. IT IS NOT REDIRECTION!!... Since the servlet need to modify the content before display it

  • Answer:

    you can use the java.net packaged, use the HttpURLConnection or URL class..

JE at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.