Comment Re:WebMacro, Java servlets, and other comments (Score 1) 235
Hey speek, I think that's what WebMacro does. You replace all those println() statements with a WebMacro template. Then your Java looks like this:
Customer cust = new Customer(); // whatever
context.put("cust", cust);
Template t = getTemplate("whatever.wm");
t.execute(out, context);
And then in your template you write things like
Hello $cust.Name you owe us $cust.Owes and your phone number is $cust.Phone
Or whatever.
Customer cust = new Customer();
context.put("cust", cust);
Template t = getTemplate("whatever.wm");
t.execute(out, context);
And then in your template you write things like
Hello $cust.Name you owe us $cust.Owes and your phone number is $cust.Phone
Or whatever.