Something like this will do the trick !!

  <xsp:structure>
    <xsp:include>java.sql.*</xsp:include>
    <xsp:include>java.util.*</xsp:include>
  </xsp:structure>
  
  <form:page>
    <form:caption>
      Test
    </form:caption>
    
    <form:table>
      <form:caption>
        Enter selection criteria to search in Trouble Tickets
      </form:caption>
      <Form Name="frmcriteria">
        <Parameter Name="PageName" Value="ttsearch"/>
        <Parameter Name="search" Value="true"/>
        <form:row>
          <form:column>Description</form:column>
          <form:column>
            <xsp:logic>
              Textbox tbDescription = new
Textbox("descriptionFilter",request);
              tbDescription.setWidth(51);
              calltextbox(tbDescription, xspAttr);
            </xsp:logic>
          </form:column>
        </form:row>
      </Form>
    </form:table>
  </form:page>

  <xsp:logic>
    private void calltextbox(Textbox tb, AttributesImpl xspAttr) throws
Exception  {
        <TextBox>
          <Name><xsp:expr>tb.getName()</xsp:expr></Name>
          <Width><xsp:expr>tb.getWidth()</xsp:expr></Width>
          <Value><xsp:expr>tb.getValue()</xsp:expr></Value>
        </TextBox>  
    }
  </xsp:logic>

-----Original Message-----
From: Andreas Doms [mailto:[EMAIL PROTECTED]
Sent: 15 October, 2004 14:43
To: [EMAIL PROTECTED]
Subject: xsp: defining a recursive methode which produces xml elements
in


I need to define a recursive methode which produces nested xml tags.

<xsp:logic>
private void produced(...){
   <a>  
     produced(...);
   </a>
}
</xsp:logic>

this gives the error "xspAttr cannot be resolved" because the xspAttr is not
known the gerated methode.

Any concept to solve this problem elegant?

---------------------------------------------------------------------
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