In the early stages you should apply ice packs for 20 to 30 minutes every 3 to 4 hours for 2 to 3 days, or until the pain goes away.
Your doctor may prescribe anti-inflammatory medication.
He may also prescribe a band to wear across the patellar tendon, (called an infra-patellar strap) or a special knee brace. The strap or brace will support your patellar tendon, preventing it from becoming overused or painful.
If you have a problem with overpronation of your foot, your doctor may prescribe custom-made arch supports called orthotics.
You will also be given rehabilitation exercises to help you return to your sport or activity.
Also, while you are recovering, you will need to change your sport or activity to one which will not make your condition worse.