Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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
Posts: 65535
108
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!