Servlet templates on TINI
Shawn Silverman <[email protected]> Tue, 8 Jun 2004 13:47:03 -0500
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
I've just created a simple template demo that lets you create templates
for your servlets.
Check it out at http://tynamo.qindesign.com/downloads/TemplateDemo.zip
Source code and Javadocs are included.
You can do things like this:
String myPage = "<p>Hello, #name#!</p>"
[...Later on...]
Template template = Template.parse(myPage); // Only need to call this
once
[...Later on...]
ServletOutputStream out = resp.getOutputStream();
template.set("name", "Wilma");
template.output(out);
template.set("name", "Fred");
template.output(out);
Regards,
-Shawn
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini