Question: why jsp is not popular?
Answer: Because web hosts can support fewer customers per server with Java web servers, so they typically don't offer JSP hosting. Most people will learn the technology the cheap hosts support, so they end up with PHP.