I’m from a php environment and trying to move to Tomcat/jsp.
I’m used to being able to point my web server at a directory and getting a nice automatic listing of all my folders.
I realize Tomcat doesn’t work that way, but I’d like to make it work that way for my development and prototyping environments.
My goal is that when I add a new web application to CATALINA_HOME, the ROOT/index.jsp page should list out the new web application as well as any other applications already installed.
given this directory structure
ROOT/index.jsp
sample/index.jsp
anotherApp/index.jsp
I’d like to see something like this in my browser when I visit localhost:8080:
My Web Apps:
* sample
* anotherApp
Is there a simple way to build a loop that iterates over tomcat.availWebApps and makes a link for each one?
Well, this works. It’s totally manual though. If someone knows an automatic or cleaner way to do this, I’d love to know.