behave like a dog
I've answered 'how to train a dog to not pee [anywhere]' at this link, same goes for peeing on a rug...How_do_I_House_train_small_dogs
well its natural for a dog to do that but if you can stop it from getting scared by whatever it is then you can stop the pee!
dont let him in there
get him used to peeing with the leash on, so he'll get used to it.
You either need to separate them or neuter your male dog.
you can train it to pee outside
Squirt him with a garden hose every time he does it.
to stop peeing on your floor?
You can get the male dog neutered, this should stop him from urinating in the house as much as he did.