• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling another dynamic URL in jsp

 
megha bakiwala
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am creating an application in which I want to keep refreshing a jsp file and in that jsp file i need to keep calling another url of type www.daniweb.com/receive.jsp?a=xxx&b=xxx and save this url in database. Here the url keeps changing in every second ie. values of a & b keeps changing.

I have been able to keep refreshing the jsp file but unable to call another dynamic url in it. Please tell me how to do it in my jsp.

Thanks in advance for your help.
 
Kshitij Chandrasen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Megha,
I'm not sure of what you mean by "calling" a URL. However, you will need to use the java.net's URL, URLConnection and the URLHTTPConnection classes to make a server request and read the response.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain what you mean by "call". Do you mean that you are causing the page to refresh? If so, how?

TellTheDetails
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!