Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including an outside resourse in your web app

Status
Not open for further replies.

Scoty

Programmer
Oct 25, 2000
278
US
I know this is going to be easy. But it is driving me nuts. Can someone please tell me how to use this code correctly. I need to include an "outside resource" in my web app. Outside my web app, and container. This is incorrect, I know, I am just using it as an example.

I want to do something like this
Code:
   <jsp:include page="[URL unfurl="true"]Http://www.google.com/search">[/URL]
        <jsp:param name="q" value="PARAM+JAVA+%22outside+resources%22" />
        <jsp:param name="hl" value="en" />
        <jsp:param name="start" value="40" />
        <jsp:param name="sa" value="N" />
    </jsp:include>

but of course this is treated as a relative path to my web app. Is there a way to do this? PS I would also like to cache the results and parse them to pull out the data I want

thanks
Scoty ::)

Learn from others' mistakes. You could not live long enough to make them all yourself
-- Hyman George Rickover (1900-86)
 
any decently secured webserver won't allow you to access anything outside the context root of your web application.
 
Thanks for the response,
I have actually already found a solution. At
With just a little modification I was able to get what I needed. Thanks anyway

Scoty ::)

Learn from others' mistakes. You could not live long enough to make them all yourself
-- Hyman George Rickover (1900-86)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top