It means the wifi that u connect to doesnt have an internet connection. One thing to understand, wifi is a network which is wireless. Not every network is connected to internet, it can be just for local computer network.
But...if u're sure that the wifi has the internet connection, check your IP setting on ur ipad. Set it to auto instead of manual.