Added example context.xml
DRYified the context variable grabbing in main jsps.