How do I separate presentation (HTML) from business logic (Java) when using servlets?
Almost anybody who has ever written a servlet can identify with this one. We all know it’s bad for to embed HTML code in our java source; it’s lame to have to recompile and re-deploy every time you want an HTML element to look a bit different. But what are our choices here? There are two basic options; 1. Use JSP: Java Server Pages allows you to embed Java code or the results of a servlet into your HTML. You could, for instance, define a servlet that gives a stock quote, then use the
Related Questions
- can someone summarize the business logic that went into the design of creating 2 separate prepaid type of plans, the To Go plan and a Flex Pay plan?
- If I want SpreadsheetConverter for Java and SpreadsheetConverter for HTML, do I have to pay two separate licenses?
- How do I separate presentation (HTML) from business logic (Java) when using servlets?