What are the advantages of using jsp over PHP or Ruby on rails?
Maybe you're a Java shop and you have a lot invested in that kind of infrastructure.
I wouldn't advocate using stock JSP for anything, though. There are toolkits that build on top of it that make life significantly easier for developers. The Tapestry/Hibernate combination is only one example.