Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP equivalent of the PHP file_get_contents()  RSS feed

 
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
Posts: 65833
134
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
Boost this thread!