a system for treating tissue carcinomas and benign inflammatory conditions of the urinary tract includes a flowable medium containing a bioactive agent and a thermogelling aqueous polymer solution . the thermogelling aqueous polymer solution maintains the bioactive agent within the urinary tract for a therapeutically optimal period of time . one embodiment includes delivering a bioactive agent in a flowable medium through an orifice into a body cavity , contacting the tissue to be treated with the bioactive agent , and filling the orifice of the body cavity with a thermogelling aqueous polymer solution . the polymer solution maintains the bioactive agent in contact with the tissue to be treated for a therapeutically optimal period of time .