You have to use something called Ohm's Law. Google it for more information.
I think of it like this:
Your source (battery) is a 4.2 volt source (at Max charge). Your sink (LED) will take up a certain amount of that voltage (3.15v for example with white). You need a resistor to take up the remaining voltage (4.2 - 3.15 = 1.05v).
You also need to consider how much current you want to travel through the LED and the resistor (1000mA or 1A for the XPE-2 LEDs).
Ohm's law helps you determine the resistance that you need to apply to get the desired voltage and current.
(V_source - V_sink)/Current
(4.2-3.15)/1 = 1.05 ohm
The 1 ohm 5w resistor from the custom saber shop would suffice for the white. I always prefer to use a 5w resistor on the LED dies for the blade LED, just to be safe.
http://www.thecustomsabershop.com/1ohm-5w-resistor-P12.aspxYou'll have to do the same calculation for the greens.