From: <web...@ap...> - 2003-08-24 17:08:30
|
On Saturday 23 viii 2003 at 21:12:48 I wrote: > I read about self.forward('AnotherServlet') the following sentence: > "When that servlet is done, control returns to the calling servlet, > but all response text and headers from the calling servlet are > discarded" > It is not true. The control does NOT return to the calling servlet for > .forward('AnotherServlet') method. It returns only for > .includeURL('AnotherServlet'), not for forward method. > ... > self.application().forward(self.transaction(), 'AnotherServlet') > open('c:/TestCache.log', 'a').write('>>I am back!!\n') > Nothing is added to my log file. :( > ... > self.application().includeURL(self.transaction(), 'AnotherServlet') > open('c:/TestCache.log', 'a').write('>>I am back!!\n') > The log file is changed. > Is it a bug or I sth. misunderstood? > BTW, I was using today's WebKit CVS. I did some tests and I found the control returns to the calling servlet but not in the way I thought. Second servlet ends with exception and the cotrol returns directly to awake() method. -- JZ |