Re: ? Best practice: Questionnair ?

2004-05-14 Thread Leon Widdershoven
Where cocoon forms = cforms = the new name for woody [EMAIL PROTECTED] wrote: hi ! For formulaire, you have to use Cocoon Forms or Woody. You can imagine to split your questionnaire in multiple pages and let cocoon handle the flow via a Flowscript that will control by example that the user

Re: Business Objects vs Data Objects [was Re: JXTemplates-what' s in a name?]

2004-05-10 Thread Leon Widdershoven
requires a restart of your web container to change them - not just a redeployment. Ralph -Original Message- From: Leon Widdershoven [mailto:[EMAIL PROTECTED] Sent: Sunday, May 09, 2004 10:48 AM To: [EMAIL PROTECTED] Subject: Re: Business Objects vs Data Objects [was Re: JXTemplates-what' sin

Re: Business Objects vs Data Objects [was Re: JXTemplates-what' s in a name?]

2004-05-09 Thread Leon Widdershoven
as a controller and not containing the business logic. Leon Ralph Goers wrote: What presentation framework allows you to replace a jar without redeploying? Ralph -Original Message- From: Leon Widdershoven [mailto:[EMAIL PROTECTED] Sent: Saturday, May 08, 2004 3:33 PM To: [EMAIL PROTECTED] Subject

Re: Help! Question on authentication + flow + passing on data

2004-05-08 Thread Leon Widdershoven
The map:match... part should be in an authentication frameword map:act I think. At least - there should be a map:act somewhere to insert the auth context. And where the bizzData goes in part two I do not know:( And in stead of nr: someData.size() - if you use forEach - you might want a forEach

Re: Selecting pipline based on XML content

2004-05-08 Thread Leon Widdershoven
I *know* it has been asked before, but I didn't follow the thread. If no wizard steps in, you could have a look at: marc.theaimsgroup.com Threads which may be of interest: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=107909805318390w=2 http://marc.theaimsgroup.com/?t=10627256282r=1w=2

Re: Vote: to unify, or not to unify - results

2004-05-05 Thread Leon Widdershoven
I fully agree that the needs of users are seldom the same. So if we're talking an experienced user I'd say a bunch of examples on all possible ways is ok. But this topic, as I understand it, is focussed on starting users. So I think that it's not so much important how many examples and ways are

Re: Vote: to unify, or not to unify - results

2004-05-05 Thread Leon Widdershoven
JD Daniels wrote: Derek: Short answer: I'm Hiding from it. heh heh. I have a project now that is a month overdue because I tried to jump on the woody -- Cforms bandwagon. I am just not Java literate enough. I came from php... it is the separation of content and logic that made me move to

Re: JXT or XSP?

2004-05-03 Thread Leon Widdershoven
Ugo Cei wrote: snip/ Ralph, while yours is certainly a well though-out rationale, I tend to agree more with Reinhard's arguments, so I won't repeat them here. I just wanted to add my 0.02. It's worth a lot more to me:) It's undoubtedly true that you can abuse flowscript and implement too

Re: Better alternative to ESQL?

2004-05-03 Thread Leon Widdershoven
Hi Christopher, the better combination seems to be flowscript + woody + O/R with O/R to be either Hibernate or OJB. There are some examples in the Wiki. Unfortunately, I find the combination neither very clean nor easy to learn, though experienced users vouch it is both easy and clean. I think

Re: Transofrmer from Invalid HTML to XHTML or XML

2004-04-23 Thread Leon Widdershoven
You might try a map:resource entry called e.g. success-resource in which you HTMLGenerate src=cocoon:/success-config.html and call that resource where you now call cocoon:/success-config That way you load a properly formatted XML document based on the html document in your pipeline, and not the

Re: Generating XML - Design decisions

2004-04-23 Thread Leon Widdershoven
You could try an Object/Relational bridge, like OJB or Hibernate, and combine it with Flowscript. You can use the JX generator to write bean information in the pages dynamically (using, of course, flowscript and cocoon.sendPage) There are tutorials and introductions on the WIKI on that subject.

Re: Generating XML - Design decisions

2004-04-23 Thread Leon Widdershoven
Ugo Cei wrote: Leon Widdershoven wrote: It is, of course, strongly recommended that you have some knowledge about java if you're going to build a O/R bridge. But not that much. I would strongly advise against *building* an O/R bridge. It's not easy at all to get it right and there are many

Re: Deal with variable page content??????????????

2004-04-23 Thread Leon Widdershoven
lechael wrote: Basically content of the page is generalized from the database. There are variable number of user inputs. Each input can be -textfields, radio, select list etc. Names of these inputs are inquired from database, and transformed by a xstl because I know all possible names

Re: Woody/Cocoon forms questions

2004-04-19 Thread Leon Widdershoven
I cannot agree. Sometimes I need to allow user on first page to choose which page will be next. For example, on first page user can check some checkboxes and regarding to user choice I would like to show forms which are availiable for choosed by user options. I don't want him to waste a time for

Re: Generic Table printout for Oracle ORDBMS

2004-04-18 Thread Leon Widdershoven
Hi Frank, you might want to visit www.w3schools.com. Lot's of simple tutorials there. If you really need books, consider Safari.oreilly.com. You have access to quite a lot of books there. You could at least take the 14 day trial (free) and review the books you want. There even is a cocoon book

Re: Generic Table printout for Oracle ORDBMS

2004-04-18 Thread Leon Widdershoven
} /xsp:logic Leon Widdershoven wrote: Hi Frank, you might want to visit www.w3schools.com. Lot's of simple tutorials there. If you really need books, consider Safari.oreilly.com. You have access to quite a lot of books there. You could at least take the 14 day trial (free) and review

Re: Database Actions - Multiple Deletion

2004-04-18 Thread Leon Widdershoven
Easiest is to make 3 tables: table 1 Posts: Column id, Column Post table 2 Comments: Column id, Column Comment table 3 Combination: Column id, Column PostID, column CommentID When deleting a comment, (and all references to it): DELETE FROM Comments WHERE ID = request:get-parameter

Re: How to access the security handler/authentication context infofrom sub-sitemap?

2004-04-18 Thread Leon Widdershoven
You did read: http://www.aerialbear.com/cocoon/documents/developing/webapps/authentication.html (search for subsitemap) ? Gautam Ganguly wrote: hi Leon, I tried that,but that creates a totally new security handler,which takes me through the whole login process again.The docs talk about accessing

Re: Woody/Cocoon forms questions

2004-04-18 Thread Leon Widdershoven
can't you put a Transformer with an appropriate xsl stylesheet (which combines the entries) just after the receiving match in the sitemap? Leon Sebastian wrote: Hi there, I've following problem. I'm using woody with binding to hibernate. In my database I've field called NIP (it is polish rate

Re: How to access the security handler/authentication context infofromsub-sitemap?

2004-04-18 Thread Leon Widdershoven
It would be interesting to see whether the session transformer can get information out of the authentication context using getxml. xsp-session:getxml context=authentication path=authentication/data/foo/ and then use transform type=session/ in the subsitemap. The handler may not be knowm, bit

Re: Woody/Cocoon forms questions

2004-04-18 Thread Leon Widdershoven
I don't know whether you use flowscript or xsp. If you use flowscript, you could look at the custom validation demo. That way you can validate the data on the form using any logic (javascript) you wish. If you use xsp you could use, before the map:act type=process an entry like map:transform

Re: How to access the security handler/authentication context infofromsub-sitemap?

2004-04-18 Thread Leon Widdershoven
Gautam, I'm only guessing here, but you couldn't rewrite the link in your parent sitemap to pass the jsession id as a request param or something like that? or put a encodeURL before the next call (e.g. the redirect or something)? If that's not the case I'm out of ideas:( In any case the best

Re: transform xhtml with xsl style sheet.

2004-04-17 Thread Leon Widdershoven
If you have xhtml you probably don't have namespace prefixes to the element. Is a default namespace set (the one your xsl works on)? Philipp Burkert wrote: Hej, i wanna transform the xhtml file which generated by htmlgenerator with xsl style sheet. [...] but seems my test.xsl doesn't make

Re: Generic Table printout for Oracle ORDBMS

2004-04-17 Thread Leon Widdershoven
Hi, Rereading my own mail: start with the bottom advice = remove newlines between tags. what I noticed is that you use get-column name like: esql:get-column-name esql:param name=column xsp:expri/xsp:expr /esql:param /esql:get-column-name What I would do if I'd like to call esql:get-column-name

Re: transform xhtml with xsl style sheet.

2004-04-17 Thread Leon Widdershoven
Hi, yes you can and no it's not difficult. I can give you one advice: Look at the examples. Woody (renamed to cforms:) is a good form block. And if you want to do it by hand, look at the generated pages using your browser's View Page Source option. Incredibly usefull that option, and available

Re: invalidating flow?

2004-04-16 Thread Leon Widdershoven
As far as I know you need not invalidate pages used with sendPageAndWait(), only the bookmarks you set. Leon Joose Vettenranta wrote: Hi, I'm using flow and I want to be sure that user won't go back after flow is executed. I tried calling cocoon.WebContinuation.invalidate() but it didn't work.

Re: invalidating flow?

2004-04-16 Thread Leon Widdershoven
(Finalpage, {foo...}, null, 1); - reload - it still is loading that finalpage It's very important that those SQL-queries are not done again - killing this flow will do that. Cache is not a problem, because cache won't do those SQL-queries... - Joose 16.4.2004 kello 11:48, Leon Widdershoven kirjoitti

Re: Xindice 1.1b4 (dev-sorry), Cocoon 2.1.4 (dev - sorry), Tomcat 5.019

2004-04-16 Thread Leon Widdershoven
edit catalina.sh in Notepad or something On unix: Add a line: JAVA_OPTS=$JAVA_OPTS -Dxindice.configuration=path/to/system.xml on top of the file (below the comments or something). That makes catalina call java like: java -Dxindice.configuration stuff on windows something like:

Re: Xindice 1.1b4 (dev-sorry), Cocoon 2.1.4 (dev - sorry), Tomcat5.019

2004-04-16 Thread Leon Widdershoven
JAVA_OPTS is a shell variable. It may also be my fault that this went wrong, but what you want to do is change the variable on top of the file so that the next reading of that variable yields something with -Dxindice.configuration I have reviewed the syntax and I think what you should have done

How to obtain a ComponentManager in xsp?

2004-04-16 Thread Leon Widdershoven
Hi, I am trying to do logic within an XSP based on the settings within an authentication context, using the authentication framework. Unfortunately, this is not directly supported (at least not using my sitemap). The Authentication Session data is of course used in the xsp page, using

Re: Mail Formhandling

2004-04-16 Thread Leon Widdershoven
or search for sendmail-action to see how mails can be send from the sitemap when a form action=mail/send-a-mail ... in the page is used. It could be that you need to install the java mail api (from sun). Leon Mark Lundquist wrote: On Apr 16, 2004, at 2:50 AM, Nils Kster wrote: Hi there,

OT: Re: md5 in XSP

2004-04-15 Thread Leon Widdershoven
I actually agree with Joose; the lack of wizards in MySQL is very disturbing. OK. Bad joke. But I do agree; I think there are situations where MySQL is not the solution. As it happens nested queries have only just been introduced, which is kind of a nice feature to have. Not required - but nice.

Re: Offline page generation without link crawling

2004-04-15 Thread Leon Widdershoven
A bit off topic and maybe not what you want - but if it's normal static content, isn't forrest better suited for that? Markus Strickler wrote: Hi- I'm trying to use Cocoon to generate a static website. After some twaeking and reading through the list archives I was able to get the cli and ant

Re: Logging in cocoon

2004-04-15 Thread Leon Widdershoven
The logging config is in cocoon/WEB-INF/logger.xconf There you define the loggers. In the sitemap you can assign such a logger to a component; they tend to log to cocoon/WEB-INF/logs/* If they don't log there, it's probably tomcat/logs/localhost-*.log (or .txt). Otherwise it's

Re: ESQl and Stored Procedures

2004-04-15 Thread Leon Widdershoven
Could it be that the xsp:expr embedded in the xsp:logic block is the culprit? I read somwhere that that is not a wise combination. (which is logical as in an xsp:logic you don't need an xsp:expr). Please note: I did not try this, and have never used the esql:call. But it seems that all tags are

OT: Microsoft Avalon

2004-04-15 Thread Leon Widdershoven
Did anyone notice that Windows Longhorn has a graphics subsystem called Avalon? When I read it I thought of apache avalon - funny that:) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

AW: xsp:expr in xsp:logic (was: ESQl and Stored Procedures)

2004-04-15 Thread Leon Widdershoven
leon Leon Widdershoven wrote: Could it be that the xsp:expr embedded in the xsp:logic block is the culprit? I read somwhere that that is not a wise combination. (which is logical as in an xsp:logic you don't need an xsp:expr). Please note: I did not try this, and have never used the esql:call

Re: ESQl and Stored Procedures

2004-04-15 Thread Leon Widdershoven
To me, the error message looked like the java program could not be generated by the xsp generator. It looks to me like it could not find update_bookmark_list_xsp which is I think the auto-generated file. I also don't know where call bookmark.update_bookmark_list comes from. But if that were the

Re: md5 in XSP

2004-04-14 Thread Leon Widdershoven
Another non-answer (I had something similar a while ago), if the passwords are stored in a MySQL database and you just wish to verify the password you could use MySQL's MD5() function (maybe also supported by other db's). This is of course of no use at all if you're comparing with encoded pw's in

Re: [OT] Distributed Cocoon Collab Environment

2004-04-13 Thread Leon Widdershoven
Hi, under Tomcat, you can run multiple instances of the web app cocoon (in theory - didn't test it) but you might be looking for somthing like the automount facility. That means you all have different apps (a copy of the base app you work on) mounted under different directories. You can each

Re: [OT] Distributed Cocoon Collab Environment

2004-04-13 Thread Leon Widdershoven
Hi, I have a separate machines for development and deployment. On the development machine, I have the datasources named exactly like the deployment machine, but the URL they point to differ (cocoon.xconf). If you run multiple cocoons in one tomcat, you can configure each cocoon.xconf

Re: [OT] Distributed Cocoon Collab Environment

2004-04-13 Thread Leon Widdershoven
Well, I think it is a bad idea to add for 100+ users a datasource jdbc:somedb://someip/uniqueID in the cocoon.xconf. That makes it large and not easily maintainable. What I would use for a unique data source per user is forget about cocoon pooling, but make some static java function which

Re: Woody in combination with dynamic queries

2004-04-10 Thread Leon Widdershoven
Hi, the way I do it is create in an xsp:logic block my WHERE clause (as a String), using the xsp:get-parameter name=type/ and such, and then use an xsp:exprwhere_string/xsp:expr in the esql statement. xsp:logic String mytype = xsp:get-parameter name=type/; String where_string = WHERE; if (

How to obtain the Manager, or a Component

2004-04-09 Thread Leon Widdershoven
. I hope someone can give me a hint as I get a headache from complicated javascript (My prototype is in JavaScript; it processes Excel spreadsheets and consists of a single file with 10+ classes and over a 1000 lines - I truly wish to organize it as a Java lib!) Regards, Leon Widdershoven

Re: AW: How to obtain the Manager, or a Component

2004-04-09 Thread Leon Widdershoven
source for some meat. -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Leon Widdershoven Gesendet: Freitag, 9. April 2004 12:37 An: users Betreff: How to obtain the Manager, or a Component Hi, I am looking for a way to get a database pool from cocoon

Re: AW: How to obtain the Manager, or a Component

2004-04-09 Thread Leon Widdershoven
only one instance of it and it gets instantiated at startup) and e.g. Servicable to receive a ServiceManager. -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Leon Widdershoven Gesendet: Freitag, 9. April 2004 13:09 An: [EMAIL PROTECTED] Betreff: Re: AW

Re: Best Way to Build a Traditional Website Structure Using Coc oon?

2004-04-09 Thread Leon Widdershoven
I have found that supporting multiple browser is a nightmare when using CSS. You need to have the test results of all supported browser at hand, or you will forget something. If you test on Mozilla, you will be shocked when viewing the results on IE6, if you develop for IE6 you get problems with

Re: Best Way to Build a Traditional Website Structure Using Coc oon?

2004-04-09 Thread Leon Widdershoven
I forgot to mention something. If I use xsp to generate my xml tree, I use xsl to format it. It's easy and clear, and it allows you to include or import other xsl template files. (Each more complex table type it's own xsl file so it's easier to keep an overview). If I use JavaScript or Java to

Re: Internet Explorer 6.0 cocoon reader PDF defect

2004-04-09 Thread Leon Widdershoven
have you tried image/pdf? That seems to be used by some platforms:) I assume you have acrobat reader installed:) depub2 wrote: Using a reader, it is impossible to read a PDF file. I am unable to get MS Internet Explorer 6.0 to display a PDF file that comes from a reader. IE6 works fine when

Re: Internet Explorer 6.0 cocoon reader PDF defect

2004-04-09 Thread Leon Widdershoven
It also looks like ie6 requires the content-length to be set. Does a Read do that? (Search Microsoft.com for explorer pdf mime:) Does a right-click Save-As function? depub2 wrote: Using a reader, it is impossible to read a PDF file. I am unable to get MS Internet Explorer 6.0 to display a PDF

Re: Make connection in Cocoon to a Microsoft Acces DB

2004-04-09 Thread Leon Widdershoven
Maybe I'm blind but you defined both the hsqldb driver and the JdbcOdbc driver in a single param-value The ibm thing is commented out and the hsldb thing should also be commented out (or in a separate init-param I think) Floris T'Joen wrote: Hi , I knew, I already added in web.xml following

Re: AW: How to obtain the Manager, or a Component

2004-04-09 Thread Leon Widdershoven
And that could also be (re-)loaded without stopping the other cocoon-dependent applications? That would be great:) Jorg Heymans wrote: Leon Widdershoven wrote: Thanks, it sounds pretty complicated. though, especially the configuration of cocoon.xconf. I have a problem declaring app specific

Re: How build minimal cocoon version for portal environment???

2004-04-09 Thread Leon Widdershoven
I can understand the question. I also had the same feeling, especially when reading the default configuration. It is not so much complex as very large. I think the trick is to - indeed - read the INSTALL file. I'm not quite sure whether all references are fully stated in the

Re: STX problem with large files/multi requests

2004-04-09 Thread Leon Widdershoven
Is the error at the same position in the source the same each time (div1/div0)? Or does it vary and do you get a different part of the document each time (probably depending on the time the second request comes in)? There are no intermediate files, which get overwritten by the second request