[Opensource] Outputting something on screen - Desperate

Daniel Campelo DanielCampelo at google.pt
Mon Jul 22 09:38:57 PDT 2002


Marc Schipperheyn,

You are trying to write to the generater page right? If so try this sample code:

out.write("fooRoot");
for(int x=0;x<5;x++){
	out.write("List1");
	out.write("itemID  : "+ db.getField("itemID"));
	out.write("Product : "+ db.getField("ProductName"));
}

Otherwise if your trying to write into the server output display, just add "System." before the "out.write(...)"..

Hope i helped :)


Daniel Campelo




--- "Marc Schipperheyn" <m.schipperheyn at thefactore.com> 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);
>}
>
>What jsp do I need to write?
>
>Any combination of ElementCollection and Iterate fails. I've completely
>given up on using the more elegant Blocks.
>The only way I can get something on screen is by using a nested OutputTag,
>but that only shows the first item in the list.
>
>I've been banging my head against a wall trying to use the taglib of
>Expresso the last couple of weeks. I'm just wondering. Is anyone using those
>at all? 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? It just seems so weird that it's so hard to do something
>so simple. 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.
>
>Kind regards,
>
>Marc Schipperheyn
><theFactor.e>
>
>Premium Partner for Macromedia
>
>The future is technological, but it will not be a world of gray steel
>
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/

_____________________________________________________________
Google.pt com email ---> http://www.google.pt

_____________________________________________________________
Promote your group and strengthen ties to your members with email at yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag



More information about the Opensource mailing list