Traditional Culture Encyclopedia - Weather inquiry - Java clients and servers access other addresses.
Java clients and servers access other addresses.
You mean that your server's web page can't capture the weather forecast, right? Are there two ways to forward jsp requests? One is that the user makes a request? Go to your server. Your server received the request? Found that additional data is needed? So I sent another request to another network? This is equivalent to two requests, and the other is a request from the user? The server found that it needs additional data? Then redirect the user's request directly to another network. I guess you need a second service to redirect users' requests directly to the weather forecast? Let the weather forecast service think that you didn't send this request? Is the user sending RequestDispatcher.forward (), response.sendRedirect ()? What seems to be the second method? You can test whether you can use these two methods to redirect the address that requests the weather forecast. See if you can get the data.
If it really doesn't work, is it possible to grab the weather forecast web service elsewhere? Very simple
On this website, you can get the weather forecast by clicking on the red circle.
- Previous article:Can birds be kept outdoors?
- Next article:Where is the dragon dance in Shenzhen? Time and place of Shenzhen Lantern Festival
- Related articles
- What's the difference between northwest and northeast?
- How to download Apple Smart Watch?
- What is suitable for tomorrow's weather?
- Weather forecast in Chengcheng county
- What does it mean that there is a snowflake mark in the BMW 5 Series?
- Model essay on the teaching plan of kindergarten large class in 2022
- The weather is good enough to walk to see you.
- What are the rules for inspection equipment?
- Net exposure An amateur team in Brazil suffered an air crash! Why are small plane accidents frequent?
- Baby sleep tips