[Opensource] Outputting something on screen - Desperate

Michael Rimov rimovm at centercomp.com
Mon Jul 22 06:30:30 PDT 2002


At 09:12 AM 7/22/2002 +0200, you wrote:
>Hi,
>
>I'm trying to get a structure like below on screen
>Output out0 = new Output();
>out0.setName("fooRoot");
>for(int x=0;x<5;x++){
>         Output out01= new Output()
>         out01.setName("List1");
>         out01.setAttribute("itemID", db.getField("itemID"));
>         out01.setAttribute("Product", db.getField("ProductName"));
>         out0.addNested(out01);
>}

Marc,

Check the Opensource archives.  [Link is at the bottom of this message] 
There was a bug in the Output tag that should be fixed now.


>Any combination of ElementCollection and Iterate fails. I've completely
>given up on using the more elegant Blocks.

Out of curiosity, just try killing the setAttribute() and change it [for 
debugging purposes] to:

out01.setContent(db.getField("ProductName"));
and see if you can get the content to display.  If you can, then you know 
that  you've hit the attribute bug.  I understand if you just grab the ea-3 
that you can overwrite OutputTag straight and keep using your own version 
of Expresso. [I haven't tried it myself though]

HTH!
                                 -Mike


>Expresso the last couple of weeks. I'm just wondering. Is anyone using those
>at all?

Yes, in fact, if you look at the Login and Registration Jsps, you'll see 
they're based off of the Expresso tags.  DBMaint, by contrast is based off 
of the Struts extended tags.


>  What is the official post Orange Trader (uses custom non-Expresso
>library) proper way of writing JSP? Or is everybody using the Struts-library
>(if so, can anyone give me an example based on my piece of code?). Or does
>everybody use XSLT?

No, XSLT isn't often used in the Expresso side of things, although when you 
work with eContent, many people use XSLT for their work

>It just seems so weird that it's so hard to do something
>so simple.

Well, when you're fighting a bug, it's understandable.


>I'd love to write some decent documentation on this, but I need
>to get past newbie stage first and that's damn hard with Expresso.

Sure, well that's what this list is for.  The EDG definitely could use 
updating and DocBook isn't too hard to learn. The DocBook definitive guide 
is even online for people wanting to get a better handle on it.

Hope this helps!
                                                 -Mike




More information about the Opensource mailing list