Hi Steve,

WebMacro is a free, open-source template engine and servlet framework
which you can use to build templates.

    http://webmacro.org

The template script language is simpler than JSP; but still has
the power of introspecting into your Java objects.

You can write templates like this:

   <table>
   #foreach $cust in Customers
   {
       <tr><td>$Cust.Name</td><td>$cust.TotalBill</td></tr>
   }
   </table>

then just have a line like this in your servlet:

   webcontext.put("Customers", DB.findCustomers(...));

or whatever. WebMacro will then analyze the customer class to figure
out how to extract Name and TotalBill properties from customers, using
bean-style introspection.

   WebMacro Servlet Framework
   http://webmacro.org

Hope this helps,

Justin.

Quoting Steven Lang ([EMAIL PROTECTED]):
> My servlets are getting pretty messy, with HTML all over. What's a better
> solution? I looked into JSP but I was not impressed with the syntax of that.
> There must be a better way.
>
> Steve
>
>
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit http://www.msn.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to