[opencms-dev] opencms.propertis httpstreaming.enabled=true

Nico Krause Nico.Krause at nsc.eu.com
Wed Nov 13 09:52:35 CET 2002


Thanks... it would be ok - if it works in the final version... until this
time...
my colleagues have to save it manually ... - I don't care -
 
By the way ... do I have to set the property "cache" to "false" while
working 
with JSP pages which have to be always up-to-date ? 
 
Have a nice day!


Nico
 
-----Original Message-----
From: Alexander Kandzior [mailto:alex at opencms.org] 
Sent: Mittwoch, 13. November 2002 09:43
To: opencms-dev at www.opencms.org
Subject: RE: [opencms-dev] opencms.propertis httpstreaming.enabled=true
 
Nico,
 
unfortunalty this might be a OpenCms core bug in the setting of the headers.

I will look into this in the next couple of days and keep you informed.
Best Regards,
Alex.

Alexander Kandzior
OpenCms Group / Alkacon Software 
-----Original Message-----
From: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Nico Krause
Sent: Wednesday, November 13, 2002 9:22 AM
To: 'opencms-dev at www.opencms.org'
Subject: RE: [opencms-dev] opencms.propertis httpstreaming.enabled=true
Hi all, 
I reset the variable to false again in opencms.properties - my templates are
working good again :-). Then I added a property stream:true to this JSP
page. But after calling my JSP page... it writes still the content type
"text/html" instead of:
response.setContentType("text/csv"); 
response.setHeader("Content1-disposition","inline;filename=PaymentsOverview.
csv"); 
stated in my JSP file! 
The Download of the *.csv file - works pretty good in normal Tomcat
Environment. 
I currently I have installed OpenCMS 5 Beta 1 on Windows NT, with MySQL on
Linux. JAVA 1.3.1 
Thank you for any help .. 
Best Regards, 
Nico 
 
-----Original Message----- 
From: Alexander Kandzior [mailto:alex at opencms.org <mailto:alex at opencms.org>
] 
Sent: Mittwoch, 13. November 2002 08:45 
To: opencms-dev at www.opencms.org 
Subject: Re: [opencms-dev] opencms.propertis httpstreaming.enabled=true 
Nico, 
don't enable "httpstreaming.enabled=true" in opencms.properties. This http 
streaming stuff is old, buggy, and completly unrelated to JSP. Leave that 
setting on "false". 
On your JSP, set the page property "stream" to "true" (in the explorer, with

the context menu). This should be all. 
The trick should work in all OpenCms releases with JSP support. 
Best Regards, 
Alex. 
Alexander Kandzior 
OpenCms Group / Alkacon Software 
 
----- Original Message ----- 
From: "Nico Krause" <nico.krause at nsc.eu.com> 
To: <opencms-dev at www.opencms.org> 
Sent: Wednesday, November 13, 2002 7:11 AM 
Subject: [opencms-dev] opencms.propertis httpstreaming.enabled=true 
 
> Hi all, 
> 
> I have a little question regarding to the 
> 
> httpstreaming.enabled=false 
> 
> variable in opencms.properties. If I enable this variable the template 
> stucture (frame/content/body/etc. will be destroyed while viewing it 
> opencms will not  display it correctly (not in the way it was defined in 
> the templates). 
> 
> I enabled this parameter because I implemented a small .jsp page wich 
> should export me on-the-fly a *.csv file out of the database. 
> The problem I head - was with the following JSP code lines... which do 
> not seems work in OpenCMS. 
> 
> response.setContentType("text/csv") 
> as also not the: response.setHeader(".... filename.csv");   //Set the 
> Filename on downloading. and/or saving. 
> 
> Do you  have any idea - how to implement this in OpenCMS - will I need 
> the new OpenCMS Beta 2 in order to do this. 
> Regarding to te email of Anil Patil I would also like some quick & dirty 
> sniplets how to use the main features and JSP-tags & librarys in and of 
> OpenCMS. (temples etc.) 
> 
> That's all - please help me .... I'm getting confused ... 
> 
> Have a successfull and nice day! 
> 
> Nico 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20021113/714b53e5/attachment.htm>


More information about the opencms-dev mailing list