• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP equivalent of the PHP file_get_contents()

 
Renato Losio
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

what's the simplest JSP equivalent of the PHP file_get_contents() function?

I would like to translate the following

$request = 'http://www.yoursite.com';

$response = file_get_contents($request);

if($response == "1")
{

(...)

Thanks,

Renato
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the JSTL <c:import> action.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic