File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 60822
    
  65

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()
 
Similar Threads
complete java desktop app GUI, to send email only inserting To,From,Subject,Message and press SEND
Not able to forward servlet to
Good Material for Ajax with Jsp
JSP's not capable of promting the client for request?
[Solved] Help With Regular Expressions/Scraping