For the Spring tool suite 4.
By default, the JSP files are not included in the suite.
In your suite, Just go to Help -> Eclipse Marketplace -> type Eclipse Enterprise Java and Web Developer Tools (version = latest one is 3.22) and install it
Then restart your suite and check now.