[Opensource] REPOST: Outputting elements in JSP
Marc Schipperheyn
m.schipperheyn at thefactore.com
Sun Jul 7 11:52:03 PDT 2002
Hi Turgay and Michael,
Thanks for that crucial bit of information. However, with the recompiled classes I'm getting more 'Attribute not found' messages, but it still doesn't quite seem to do the trick. I've included the data-structure and the tag tree I'm using.
=== data structure ===
<controller-response name="xxx" title="DierCntrl" requestedState="displaySoort">
<!---Block base--->
<block name="Dierenoverzicht">
<controller-element name="Dierenoverzicht" display-length="60" lines="1" />
<!---Output level 1--->
<output name="gogo">
<content />
<controller-element name="gogo" display-length="60" lines="1">
<element-attributes>
<element-attribute name="myinfo" value="welkom" />
</element-attributes>
</controller-element>
</output>
<!---Block level 1--->
<block name="Dier0">
<controller-element name="Dier0" display-length="60" lines="1" />
<!---Output level 2--->
<output name="dierOverzicht">
<content />
<controller-element name="dierOverzicht" display-length="60" lines="1">
<element-attributes>
<element-attribute name="DierNaam" value="Panda" />
<element-attribute name="dierID" value="2" />
</element-attributes>
</controller-element>
</output>
<transition name="KlikDier" controller="nl.wnf.dierendatabase.controller.DisplaySoort">
<transition-parameters>
<transition-param name="id" value="2" />
</transition-parameters>
<controller-element name="KlikDier" label="KlikDier" display-length="60" lines="1" />
</transition>
</block>
</block
</controller-response>
===tag tree===
<expresso:ElementCollection type="block">
<expresso:ElementIterator>
<expresso:ElementCollection type="output">
<expresso:ElementIterator>
<expresso:OutputTag name="gogo">
<expresso:AttributeTag name="myinfo"/>
</expresso:OutputTag>
</expresso:ElementIterator>
</expresso:ElementCollection>
<expresso:ElementCollection type="block">
<expresso:ElementIterator>
<expresso:ElementCollection type="output">
<expresso:ElementIterator>
<expresso:OutputTag name="dierOverzicht">
<expresso:AttributeTag name="DierNaam"/>
<expresso:AttributeTag name="dierID"/>
</expresso:OutputTag>
</expresso:ElementIterator>
</expresso:ElementCollection>
</expresso:ElementIterator>
</expresso:ElementCollection>
</expresso:ElementIterator>
</expresso:ElementCollection>
Sorry for the lengthy post. Being a newbie I just want to be absolutely sure I'm not making some stupid mistake before I start looking at using the Struts tags to achieve the same purpose.
Thanks,
Marc Schipperheyn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20020707/4fdad241/attachment-0002.htm
More information about the Opensource
mailing list