A developer needs to implement complex business logic with minimal HTML. Should they choose Servlet or JSP?
- Both
- JSP
- None of the above
- Servlet
When implementing complex business logic with minimal HTML, Servlets are more suitable as they provide better control over the business logic, separating it from the presentation layer. JSP is better for the view layer and is commonly used for creating dynamic web pages with embedded Java code.
Loading...
Related Quiz
- To apply multiple filters to a single resource, the web.xml file must define a __________ for each filter.
- How does the servlet container use the order of filter mappings in web.xml?
- Which method is used to set a response header with a String value in a servlet?
- When optimizing an MVC application for performance, where should caching strategies be implemented in relation to servlets?
- What are the implications of using optimistic vs. pessimistic locking strategies in database transactions?