cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pope <benpop...@gmail.com>
Subject Re: DOM objects in session
Date Sun, 17 Apr 2005 21:21:16 GMT
I'm sure your posts would be much easier to follow if you used, say, 3 
spaces instead of 8-16 for indentation.

Ben



Kumar, Kiran wrote:
> I;ve done some research and found that the SessionAttributeGenerator, is
> using wrong session object ( and data is being shared between multiple
> sessions)
> 
> even though the xml is built correctly, SessionAttributeGenerator is
> accessing the wrong dom object in session.
> 
> 1. do we have to Synchronize the generate() method block?
> 2. are there any known problems in SessionAttributeGenerator
> 
> 
> here is the pipeline that uses this generator
> 
> 	<map:match pattern="login">
> 		<map:act type="xml">
> 				<map:act type="simple">
> 					<map:generate type="sess-attr"
> label="raw">
> 						 <map:parameter
> name="attr-name" value="myAttribute"/>
> 						 
> 						 <map:parameter name="style"
> value="{style}"/>
> 						 <map:parameter name="ETerm"
> value="{ETerm}"/>
> 					</map:generate>	      
> 					<map:transform src="{style}.xsl">
> 						<map:parameter
> name="use-request-parameters" value="true"/>
> 						<map:parameter
> name="dataTemplate" value="{dataTemplate}"/>
> 						<map:parameter name="layout"
> value="S1" />
> 						<map:parameter name="wizard"
> value="N" />
> 					    <map:parameter name="ETerm"
> value="{ETerm}"/>
> 			   		 </map:transform>
> 			    		<map:serialize />
> 					</map:act>  
> 				</map:act>  
> 		</map:match>I have somany pipelines like this!!
> 
>  
> thanks
> 
> Kiran Kumar (Raj)
> 
> 
> 
> thanks
> 
> Kiran Kumar (Raj)
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Kumar, Kiran [mailto:kkumar@kheaa.com]
> Sent: Saturday, April 16, 2005 10:19 AM
> To: 'users@cocoon.apache.org'
> Subject: RE: DOM objects in session
> 
> 
> regarding the same issue, I found in the cocoon users group that by using
> the Java Filters with cocoon servlet fixed this problem? 
> could some body give me some examples about how to use the filters
> effectively
> 
> appreciate your response
> 
> 
> thanks
> 
> Kiran Kumar
>  
> 
> 
> 
> 
> 
>> -----Original Message-----
>>From: 	Kumar, Kiran  
>>Sent:	Friday, April 15, 2005 8:13 PM
>>To:	'users@cocoon.apache.org'
>>Subject:	DOM objects in session
>>
>>I create DOM objects and store them in session. use a session attribute
>>generator to transform the DOM to a HTML using XSL.
>>
>>here the dom objects are being shared between sessions and I am seeing
>>data from other users or processes.
>>
>>I used the synchronized blocks when creating xml doms from
>>DocumentBuilderFactory  newBuilder().newDocument() etc
>>
>>is there any way I can resolve this issue??
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message