I'm more interested in backend work now. When you say mapped do you mean the "shared folders" via guest additions ?
Yes. Setup networking between guest and host, then on the host connect to the share on the guest.
I'm not sure whether you're doing this on purpose, but just incase: you don't need to set up networking on the guest to have shared folders. Virtualbox has native functionality for this (using the guest additions that the grantparent mentions).
For front-end testing I run various windows virtual boxen windowed on the second monitor while my IDE is up on the main monitor. In this case my work files are local on the mac and shared to the Vbox for previewing on Windows (including IE6 sadly).