Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes How to generate dynamic index.html? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to generate dynamic index.html?" Watch "How to generate dynamic index.html?" New topic

How to generate dynamic index.html?

Henrik Krievs
Ranch Hand

Joined: Jan 05, 2004
Posts: 60

Is it possible to make a JSP page generate it's own contents based on files on the App Server?

Meaning: I have a lot of .wsdl files deploye in a webapp on my Tomcat. For each new .wsdl file being created I have to manually edit the index.html to reflect this. But it would be nice if the index.html could traverse the directory and make links to all the .wsdl files. Is this possible?

Regards, Henrik
Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294

Hi Henrik,

of course it's possible to do this task automatically. You have the full functionality of Java in a JSP or Servlet. The only difference to a "normal" Java application will be the output format HTML.

I agree. Here's the link:
subject: How to generate dynamic index.html?
It's not a secret anymore!