Inside and Outside Texture on one Wall

How is texture mapping done, when I want to see white walls inside my rendered room and through the window I can see that on the other side (outside) the same wall is painted e.g. green?

Okay, it probably doesn’t get any better than this: Tips for Multiple Material Objects