requestresponsepageContextsessionapplicationoutconfigpageexception<%! ... %> – define fields and methods.<% ... %> – embed Java code in the JSP page.<%= ... %> – output the result of a Java expression.<%-- JSP Comment --%> (Not sent to the client) <!-- HTML Comment --> (Visible in the page source sent to the client)
SingleThreadModel deprecated?SingleThreadModel interface (Servlet 2.4) was deprecated because it did not effectively solve concurrency issues and created performance problems.
Modern best practice: Always handle concurrency by synchronizing access to shared resources or using thread-safe components.