You can have your logicsheet code read it directly from the sitemap
parameters, or for a more general solution pass it in through your
template. I assume you are using ESQL? Then you need something like the
following:
logicsheet:
....
<xsl:template match="my-logic:get-data">
<esql:connection>
....
<esql:query>
select * from blah where id =
<esql:parameter type="int"><xsl:apply-templates
select="my-logic:id/node()"/></esql:parameter>
</esql:query>
....
</esql:connection>
</xsl:template>
....
XSP:
....
<xsp:logic>
int myID = [code to get parameter value here];
</xsp:logic>
<my-logic:get-data>
<my-logic:id><xsp:expr>myID</xsp:expr></my-logic:id>
</my-logic:get-data>
.....
HTH,
Christopher
|---------+---------------------------->
| | <[EMAIL PROTECTED]|
| | .com> |
| | |
| | 03/03/2004 10:45 |
| | AM |
| | Please respond to|
| | users |
| | |
|---------+---------------------------->
>--------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Passing values into an XSP logic sheet
|
>--------------------------------------------------------------------------------------------------------------|
Hi,
I have created a custom logic sheet for which I have a hard coded value
which is used to pull data from a postgreSQL database. How can I pass a
value into a logicsheet? At the moment the flow is:
Generated HTML <-- stylesheet <-- XSP page <-- XSP Logicsheet. From the
sitemap I can read the parameter I need into the XSP page, but how can I
get it into the XSP Logicsheet?
many thanks in advance
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing values into an XSP logic sheet
Christopher Painter-Wakefield Wed, 03 Mar 2004 08:03:25 -0800
- Passing values into an XSP logic sheet beyanet
- Re: Passing values into an XSP log... Christopher Painter-Wakefield
- Re: Passing values into an XSP... beyaNet Consultancy
- Re: Passing values into an... beyaNet Consultancy
- Re: Passing values into an XSP log... Christopher Painter-Wakefield
- Re: Passing values into an XSP... beyaRecords - The home Urban music
