1 Dec 13:37
Re: Servlet service request
Grzegorz Kossakowski <gkossakowski <at> apache.org>
2007-12-01 12:37:04 GMT
2007-12-01 12:37:04 GMT
Carsten Ziegeler pisze: > Grzegorz Kossakowski wrote: >> Reinhard Poetz pisze: >> Hmmm, I have not considered flowscript when I was formulating my opinion on this subject and it was >> an obvious mistake. Your argument is of course valid and it seems that the best compromise between >> functionality, performance and separation is to provide access to the data from parent request but >> in read-only mode. It means we should allow sub-request to access request attributes of calling >> request. When it comes to session (even in read-only mode) I'm very circumspect. >> >> I believe that the best strategy is to allow as less as possible that still enable us to make full >> use of servlet service capabilities. >> >> WDYT? >> > I'm not sure - creating an artificial and somehow unusable session for > sub requests is imho no solution. It somehow doesn't neither make sense > nor does it feel right. > > In the portal world, the session is shared between portlets and servlets > residing in the same web application - there is no difference in terms > of usability between a portlet or a servlet. The portlet spec does not > want to impose restrictions, however it gives guidance to not mess up > with the session and missuse it. > > For some applications, the session contains required information like > the local or some preferences. You definitly don't want to pass them do > sub requests by getting them from the session and putting them into the > request. It may sound controversial but I think that things like information about user locale or preferences(Continue reading)
RSS Feed