Re: [studs-user] Objects in application scope
Status: Beta
Brought to you by:
mojavelinux
|
From: Juan C. R. A. <jc...@um...> - 2007-02-16 11:55:50
|
Hello, continuing with the problem I already commented to this list before. I have had some time to give a in deeper glance and this is what I have found. The point is when I want to assign a 'skin' attribute in application scope, so later actions can use it to select the appropiate style sheet and images. (This happens in http://www.centrosierranet.com) Main action have several includes throught template:insert.psp. One of them is a .psp which contains partial content: ... ... ... <c:set var="ctx"><html:rewrite page="/index.php"/></c:set> <iframe scrolling="no" height="%40" width="%100" frameborder="0" src="${ctx}/calendar.do?${qs_calendar}"> </iframe> ... ... ... This code calls the action responsible of calculate what days to anchor and of sending this information to the view, so the calendar can be displayed accordingly. In this scenario, application scoped 'skin' variable disappear... If this code is removed. Then 'skin' variable remains in application context forever. Curious, isn't it? Juan Carlos |