A personal blog-like website developed using javaweb, the home page needs to load a lot of things, such as articles, mood quotes similar to Weibo, latest comments, announcements, and broadcast pictures. I originally wanted to use freemarker, but I found that there were too many things and too much trouble, so I directly used jsp, but I encountered a new problem. Because you need to load a lot of things, but you don"t want to write too much java code in jsp, you just want to use el expressions to take values in jsp. But it is found that to do this, you have to access a servlet, before visiting the home page, but how can you access the domain name to enter the home page?
I mean, add a servlet, and my visit becomes www.xxxxx.com/servlet-name. What I want is to visit www.xxxxx.com.
. Also, how do you handle the home page? jsp feels too inefficient. If you use ajax, you have to write a lot of ajax requests.