cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mats Norén <mats.no...@spectral.se>
Subject Re: FP Taglib + New Taglib question
Date Thu, 28 Sep 2000 15:43:37 GMT
Yep, that was the problem. Thanks!
Another question ?
If I mix two taglibs on the same page...like for instance fp with esql the
esql-tags doesn't execute..
Example:

<?xml version="1.0"?>
<!-- Written by Mats Noren "mats.noren@spectral.se" -->
<?cocoon-process type="xsp"?>

<xsp:page
        xmlns:esql="http://apache.org/cocoon/SQL/v2"
        xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0"
        xmlns:request="http://www.apache.org/1999/XSP/Request"
        xmlns:util="http://www.apache.org/1999/XSP/Util"
        xmlns:xsp="http://www.apache.org/1999/XSP/Core"
        language="java"
>

        <page>
        <fp:resource id="lang_strings">
                             <fp:resource-file>lang_strings.xml</fp:resource-file>

<fp:resource-node>defaults/form/page/item</fp:resource-node>
        </fp:resource>
        <esql:execute-query>
           <esql:driver>com.inet.tds.TdsDriver</esql:driver>
           <esql:dburl>jdbc:inetdae:xxx.xxx.xxx:1433?database=xxx</esql:dburl>
           <esql:username>xxx</esql:username>
           <esql:password>xxx</esql:password>
           <fp:if-get>
           <esql:query>select n.txt_title, n.txt_subtitle, n.news_id FROM news_tbl
n WHERE news_id=<request:get-parameter name="item"/></esql:query>
           <esql:results>
                          <form action="item.xml" method="POST">
                <input name="title">
                      <xsp:attribute name="label"><fp:read  select="title/label"
from="lang_strings"/></xsp:attribute>
                                <esql:get-string column="txt_title"/>
                </input>
                <input name="subtitle">
                      <xsp:attribute name="label"><fp:read  select="subtitle/label"
from="lang_strings"/></xsp:attribute>
                                <esql:get-string column="txt_subtitle"/>
                </input>
                <input name="body" type="textarea">
                        <xsp:attribute name="label"><fp:read select="body/label"
from="lang_strings"/></xsp:attribute>
                                <esql:get-xml column="txt"/>
                </input>
                <input name="item" type="hidden">
                        <value><request:get-parameter name="item"/></value>
                </input>
                <input name="submit" type="submit">
                        <xsp:attribute name="label"><fp:read select="submit/label"
from="lang_strings"/></xsp:attribute>
                                <fp:read select="submit/label"
from="lang_strings"/>
                </input>
             </form>
        </esql:results>
    <esql:error-results>
    <message><esql:get-message/></message>
    <stacktrace><esql:get-stacktrace/></stacktrace>
    </esql:error-results>
    </esql:execute-query>
    </fp:if-get>

    <fp:if-post>
           <dummy>Dummy-post...should make update query to DB</dummy>
           <title><request:get-parameter name="title"/></title>
           <subtitle><request:get-parameter name="subtitle"/></subtitle>
           <body><request:get-parameter name="body"/></body>
     </fp:if-post>

    </page>
</xsp:page>


Any suggestions what went wrong here ?

/regards Mats

Mime
View raw message