Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

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.

Slashdot Top Deals

The Tao doesn't take sides; it gives birth to both wins and losses. The Guru doesn't take sides; she welcomes both hackers and lusers.

Working...