try this:

      <xsp:logic>
            String s1 = "junk";
            String s2 = "stuff";
      </xsp:logic>
      <xsp:element>
            <xsp:param name="name"><xsp:expr>s1</xsp:expr></xsp:param>
            <xsp:attribute>
                  <xsp:param name="name"><xsp:expr>s
2</xsp:expr></xsp:param>
            </xsp:attribute>
      </xsp:element>

-Christopher



|---------+---------------------------->
|         |           "julien bloit"   |
|         |           <[EMAIL PROTECTED]|
|         |           am.fr>           |
|         |                            |
|         |           12/15/2003 10:30 |
|         |           AM               |
|         |           Please respond to|
|         |           users            |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                          |
  |       To:       <[EMAIL PROTECTED]>                                                
                    |
  |       cc:                                                                          
                          |
  |       Subject:  ESQL : creating dynamic elements ?                                 
                          |
  
>--------------------------------------------------------------------------------------------------------------|




I'm building a database request using ESQL. Let's say I have a table with
two columns in the table i'm requesting. This is the xsp snippet I use to
get the results from the request :

<esql:results>
     <esql:row-results>
          <first_table_col_1>
                <esql:get-string column="1"/>
                <xsp:attribute name="first_table_col2">
                    <esql:get-string column="2"/>
                </xsp:attribute>
            </first_table_col_1>
        </esql:row-results>
</esql:results>

This works, but as I want this code to be dynamic in order to be used with
other tables, I need my column element name (the currently static
"<first_table_col_1>" element) to be created with the requested column
name.
The same logic would apply for the 'name' attribute in the 'xsp:attribute'
element. I don't know if this is possible, using the esql logicsheet.

any ideas?

Thank you,
Julien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to