Please check 1558182.1.
This works on 11i but should also work for r12.1 and r12.2 also.
You can even create an html that will be stored under $OA_HTML. This can be passed as reference to SSWA jsp function type when creating functioN. This function can then be added to your customized responsibility.