Johan,

Hmm, can you provide some more info? Are you getting an error? How is
getNext() implemented (what does it iterate over? java.sql.ResultSet?) ?

You may just need some well placed debugging output to see where things are
failing?

I've researched and implemented tag extensions quite a bit ... feel free to
send code and/or more info on or off the list and I'll do my best to help
out.

Mike Bannister
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Johan Fredriksson
Sent: Thursday, April 26, 2001 5:23 AM
To: Orion-Interest
Subject: Taglibs - a newbie question


I'm new to taglibs, and so far it really seems like a great idea. But I
cannot get the collaborating tags to work the way I want them to.

I want to create a html file like this

<%@ taglib uri="mytags" prefix="mt" %>

<html>
 <body>
  <table>
   <mt:getFAQ>

   <tr>
    <td>Datum 2001-01-01</td>
   </tr>

   <tr>
    <td><mt:getQuestion/></td>
   </tr>
   <tr>
    <td><mt:getAnswer/></td>
   </tr>
   </mt:getFAQ>
  </table>
 </body>
</html>


I cannot get the GetFAQTag to iterate...! From the GetQuestionTag ( and
answer) I call

GetFAQTag faqparent = (GetFAQTag) findAncestorWithClass(this,
GetFAQTag.class);

and then I call a method called faqparent.getNext(); which returns me the
question or the answer.

I suppose I have figured out what types of tags I should use when doing this
kind of tag interaction.

Did the tutorials on the orionserver.com but my inferior brain cannot figure
out how to combine these things to do what I want, so if anyone could give
me a hint I would be very grateful!

Thnx in advance


Johan


Reply via email to