Title: Glacier
I am stuck for the last two days, and having scourged the newsgroup postings, I think a direct appeal is okay...
 
My entire project revolves around being able to do something like this, and my go-live date is nearing, so please, h-e-l-p.
 
The problem is this:
 
I have a custom logic sheet with a method called list-people. It takes in a parameter called "class", and calls the appropriate helper class to do its stuff. The tag code looks like this:
<xsl:template match="gvsdb:list-people">
    <xsl:variable name="class"/>
    <util:include-expr>
        <util:expr>
            <xsp:expr>
                (XMLGenerator.toXML(<xsl:value-of select="@class"/>Helper.getAll())).asXML()
            </xsp:expr>
        </util:expr>
    </util:include-expr>
</xsl:template>
In an xsp file called people.xml, I call this tag to populate a table, like so:   
<gvsdb:list-people class="Singer">
This works fine.
 
Now I try (in vain) to make this dynamic by getting the value of "class" from an identically named request parameter. I tried a bunch of options, such as:
<xsp:element name="gvsdb:list-people">
    <xsp:attribute name="class">
        <xsp:expr>
            <xsp-request:get-parameter name="class"/>
        </xsp:expr>
    </xsp:attribute>
</xsp:element>
 
This one fails! Instead of executing the tag, it merely writes it out to the output as
<gvsdb:list-people class="Singer">
How do I make this work and populate the table?
 
 
Best Regards,

Sreedhar Chintalapaty
_______________________________________
A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell

 

Reply via email to