user638: How can a person be abstinent and overcome all sexual urges including self-gratification in accordance with the Buddhist tradition ? What prescription do the teachers give to get over such obstacles ?

user111: Patikulamanasikara is a special meditation recommended for lustful personalities. Back in the day, in India, they used to wrap dead bodies in robes(Pansukula) and throw to a designated land without burying or burning. These places are ideal to do this kind of meditation as you can observe the rotting bodies. Nowadays, it's pretty difficult to get access to a corpse, unless you work in the morgue. Although you could google for pictures and videos of decomposing bodies. Better to start it under the guidance of a teacher. At some point, you will have to turn the meditation in to Vipassana, if you are looking for a lasting solution.

user295: Any such urge gives rise to feelings. What you should do is look at the feeling equanimously and objectively so that cravings for sensual pleasures do not arise. This is in Dependent Origination.
Initially the success would be very limited with only a few seconds of success, but as you go on the duration would increase and at one point you would be able to continuously be equanimous. To be able to do this you have to do Vipassana Meditation.
For a lay person the general recommendation is to abstain from sexual misconduct. You do not have to go to this extent, but this would become natural when you become Anāgāmi which is one Stage of Enlightenment.

638: <p>How can a person be abstinent and overcome all sexual urges including self-gratification in accordance with the Buddhist tradition ? What prescription do the teachers give to get over such obstacles ?</p>
 111: <p><a href="http://en.wikipedia.org/wiki/Patikulamanasikara" rel="nofollow">Patikulamanasikara</a> is a special meditation recommended for lustful personalities. Back in the day, in India, they used to wrap dead bodies in robes(<a href="http://www.wisdomlib.org/definition/pansukula/index.html" rel="nofollow">Pansukula</a>) and throw to a designated land without burying or burning. These places are ideal to do this kind of meditation as you can observe the rotting bodies. Nowadays, it's pretty difficult to get access to a corpse, unless you work in the morgue. Although you could google for pictures and videos of decomposing bodies. Better to start it under the guidance of a teacher. At some point, you will have to turn the meditation in to Vipassana, if you are looking for a lasting solution.</p>
 295: <p>Any such urge gives rise to feelings. What you should do is look at the feeling equanimously and objectively so that cravings for sensual pleasures do not arise. This is in <a href="http://en.wikipedia.org/wiki/Prat%C4%ABtyasamutp%C4%81da" rel="nofollow">Dependent Origination</a>.</p>

<p>Initially the success would be very limited with only a few seconds of success, but as you go on the duration would increase and at one point you would be able to continuously be equanimous. To be able to do this you have to do Vipassana Meditation.</p>

<p>For a lay person the general recommendation is to abstain from sexual misconduct. You do not have to go to this extent, but this would become natural when you become <a href="http://en.wikipedia.org/wiki/Anagami" rel="nofollow">Anāgāmi</a> which is one <a href="http://en.wikipedia.org/wiki/Four_stages_of_enlightenment" rel="nofollow">Stage of Enlightenment</a>.</p>
