On 21.Mar.2002 -- 08:26 AM, Peter Wieland wrote: > * 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?
This is a big problem. But you can work around it by using specific prefixes to your vars. Best is to avoid vars in your logicsheet. Use one or two global vars as reference to some complex structures like beans and set their properties. Once properties are set, call your beans methods. > 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. Try to nest <esql:param name="column"><xsp:expr>column_number</xsp:expr></esql:param> elements in your <esql:get-string> tags. Should suffice. Or, if column is determined statically be logicsheet, you need <xsl:attribute name="column"><xsl:value-of select="$column"></xsl:attribute> Mind you, perhaps you need to copy-of instead of value-of. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- 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]>