Re: Optional authentication

2004-01-08 Thread O . Vobejda
Thanks and where I can found this sample? Otmar Cituji z emailu od Alex Romayev <[EMAIL PROTECTED]>: > I have noticed in the sample for the new portal engine > that it by default behind the scenes logs you in as an > annonymous user, which allows to show you some data. > When you log in you hav

Optional authentication

2004-01-08 Thread O . Vobejda
Hi, I'd like to ask, if you have some experiences with "optional autenthication". I mean, that sites can be viewed without authentication (without log in) as well as with authentication. But if you are authenticated, serverpages script (one and the same script) can offer you additional informa

sitemap freezing

2004-01-07 Thread O . Vobejda
Hi, I have a strange problem. I'm using blob:/ source () to put out XSL template from db. That's ok. In this template are imported (by ) some other subtemplates via cocoon:/ protocol (pipeline "source/*" contains databasereader). All works fine and correctly, but... after several site reloads t

Re: XSL template from database

2004-01-07 Thread O . Vobejda
Thanks, I tried it, but cocoon returns error message: "Streaming of an internal pipeline is not possible with a reader.". What does it mean? Otmar > This is not necessary. One could use the cocoon: protocol when > specifying the source for the stylesheet. Next, a pipeline for the > stylesheet is

Re: disable-output-escaping

2004-01-06 Thread O . Vobejda
Thanks for your idea description. But I don't know, if it would be uneconomical - because I have stored several HTML snippets in one record (they are readed just once). And if I would read every snippet separately, I would become multiple loading. What do you think about it? Otmar Cituji z em

Impossible to use reader as source of XSLT?

2004-01-06 Thread O . Vobejda
Hi, I have a problem. I want to use transformer, it gets XSL stylesheets not from filesystem, but from database. As some good mind advised, I used cocoon:/ protocol to call another pipeline with databasereader, which returns appropriate XSL stylesheet. But cocoon reports: "Streaming of an inter

Re: disable-output-escaping

2004-01-06 Thread O . Vobejda
Thanks for your answer, but have I any other choices to create HTML output from HTML fragments, they are readed from database? I'm doing a CMS, so I'm reading some HTML fragments from database (as title, abstract, content of article, etc.) plus many other stuff (forum notes, questionnaires etc.)

disable-output-escaping

2004-01-06 Thread O . Vobejda
Hi, I tried use attribute disable-output-escaping in XSLT transformer (by xsl:value- of and xsl:copy-of), but it doesn't work, it seems (the output is encoded as well as unusing the attribute). What I'm doing wrong? Thanks a lot! Otmar Vobejda -

Inserting XML

2004-01-05 Thread O . Vobejda
Hi, I'd like to ask, how to insert XML-valid fragment into generated XML document by XSP. I have stored XML fragment (or XHTML or whatever) in the database and I'd like to put it into any element in the serverpages. I tried or use ESQL helper or tried to wrote own replacing method, but always

XSL template from database

2004-01-04 Thread O . Vobejda
Hi, I'd like to make the pipeline, where is the XSL template readed from SQL database (not from filesystem). Is it possible? Selecting of appropriate template depends on the one key, it is generated either with serverpages generator or it can be contained in the URI (doesn't care). Thanks a

Re: how to put {1}, {2}... into XSP

2003-12-29 Thread O . Vobejda
Thanks for your answer, but I think, that it would be better non-use parameters in URL (at most for subsidiary reasons), because of easy generating offline version of the web. That's why I want to use this type of URL (for example http://domain/html/en/article/10) as I wrote before. Otmar Vobej

how to put {1}, {2}... into XSP

2003-12-28 Thread O . Vobejda
Hi, I have a this problem. I'd like to put parsed pieces of URI into serverpages as parameters. For example: I have URI "html/english/article/102" (it means, that I want to get article with ID=102 in english language and in HTML format). Sitemap could look like as

Logicsheet as condition

2003-12-02 Thread O . Vobejda
Hi all, I'm making a little project in cocoon and I have been cornered now (nothing unusal :)). I need to implement a permission control of user's actions (it means, that for example some users can create something, another users can just read somehing etc.). All is ok, but I don't know, how

Logicsheet with code inside

2003-12-01 Thread O . Vobejda
Hi, I'd like to do logicsheet, it should just copy of input code. Example: XSP script looks like: ... java code, using other logicsheet, simply anything ... XSL logisheet define should look like (I thought): or something like But nothing of the above doesn't work

Re: Upload with incorrect encoding

2003-12-01 Thread O . Vobejda
Thanks for your answer. But I'd like to ask, if is possible to do it inside XSP script. I need to do much more stuff with the data of the upload form (another inserts, logic etc.) then just storing the file into db. I know, that it could I do with action too, but it's not as comfortable and stra

Re: Upload with incorrect encoding

2003-11-30 Thread O . Vobejda
Db supports BLOBs, but I never did anything with them in java, less so cocoon :) Is it possible to use ESQL someways? Probably not, isn't it :) osup Cituji z emailu od Jorg Heymans <[EMAIL PROTECTED]>: > Doesn't your database support the blob fieldtype? I am not sure why you > store the inputs

Upload with incorrect encoding

2003-11-30 Thread O . Vobejda
Hi, I have a little problem (I'm not sure, if it is problem of cocoon or pure java - if so, I apologize :). When I want to store into database binary data of uploaded file, many of characters are replaced by '?'. When I tried to store data to the file, everything was ok (it means, that from Inpu

How to show files from database / DatabaseReader problem

2003-11-29 Thread O . Vobejda
Hi, I have a big problem with Database reader. I'd like to make a common stuff - in the database I are stored binary files (table structure looks: (id, content, filename, mimetype) and I'd like to map url "file/234" on the accordant file. Remind, that in the database can be stored everything po