> From: Peter Wieland [mailto:[EMAIL PROTECTED]] > > Hi, > <snip/> > > But this will not be the final state and I think I will try out java > variables. But: on the cocoon site I found about variables > > * Even when using enclosing braces around the <xsp:logic> > section, there's > always the risk that the page author (or another logicsheet!) > has previously > defined variables called myConnection, previousConnection or > mySession. This > will result in multiply-defined variable compilation errors > > What do I have to take care about to bypass problems like that?
As Christian Haul suggested, you can use either a prefix for your variables, say _my or _own. Or create a JavaBean that would contain all the needed data and have only one variable. > > Some other question: see bottom > <moved-to-bottom/> >> You are mixing your code with ESQL's, this can be the cause of the >> problem. > >I'm sure, this is the cause of my problem and this is my problem. As I want >to use the results of my code to "configure" the esql parts, I don't see how >to avoid this. My source file defines the columns to read from the table. My >code translates this to a select command and to the several queries. It's not a problem. But this should be done carefully. See generated Java source to understand better what's happening when you apply your logicsheets. As Vadim suggested, try to transform your XML files using Xalan directly: XML -> your logic and see if you get what you are expecting. > >What's a little strange is that I get the fine result to generate the select >command but it doesn't work for the get-string calls. Maybe ESQL code is not performed? What is the output of your page? -- Konstantin Piroumian [EMAIL PROTECTED] > >Peter --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>