Here' exactly what you need to do. Check out the 240sx section and do a search for engine swaps. I gaurantee you will get enough info from that search.
Nissan Forums is the go to place to talk about your favorite Nissan model, including the Rogue, Maxima, Altima and even sports cars like the 370Z and 200SX.