wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP equivalent of the PHP file_get_contents() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP equivalent of the PHP file_get_contents() " Watch "JSP equivalent of the PHP file_get_contents() " New topic
Author

JSP equivalent of the PHP file_get_contents()

Renato Losio
Ranch Hand

Joined: Nov 23, 2005
Posts: 99
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


Renato Losio - www.arsenio.it - renatoweb@arsenio.it
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Check out the JSTL <c:import> action.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP equivalent of the PHP file_get_contents()