GeeCON Prague 2014*
The moose likes Servlets and the fly likes one request call another request from html or JSP page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "one request call another request from html or JSP page?" Watch "one request call another request from html or JSP page?" New topic
Author

one request call another request from html or JSP page?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
Hi All,

I need to call

10-15 URL's one by one i am clalling it whihc is little bit time consuming and hit each URL individuals.

So i am planning just click one href link from jsp/html page and it will call automatically one by one sequentially and once final response response done i need to get a response message that everything is done successfully.

How to implement this in JSP /Servlet or HTML.

Please click here --> call another URL --> call another URL --> and so on....

Get response --> finallly.

Let me know someone.

Regards,
Prabhat
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61305
    
  66

That makes no sense. Each request will return a response. Back up and please explain what you are actually trying to accomplish.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hikari Shidou
Ranch Hand

Joined: Jan 22, 2013
Posts: 88
It seems each URL executes something on a remote server, and he wanna automate it so that he clicks only once and all URLs are called.

It's impossible to answer you. Do you have access to that website code and server? Can you change it and deploy?

If you don't have access to server at all, you need JavaScript, and not Java. Use FireFox + GreaseMoney to develop a JS to hack that site and add another link that will trigger JS code, to call each other link and put its response somewhere.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
very simple , i am ok to use any thing java,javascript,Servlet,JSP.

My requirement is:



I have 10 URL which i need to click manually one by one in order.

can i write some code wherein hitting one URL can call other subsequent calls in background and will return the response at the end.



Hikari Shidou
Ranch Hand

Joined: Jan 22, 2013
Posts: 88
As I said,

If you don't have access to server at all, you need JavaScript, and not Java. Use FireFox + GreaseMoney to develop a JS to hack that site and add another link that will trigger JS code, to call each other link and put its response somewhere.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
ok fine
 
GeeCON Prague 2014
 
subject: one request call another request from html or JSP page?