You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Scott Sanders <sa...@totalsync.com> on 2000/08/08 00:24:45 UTC

100% Dynamic Content

I was trying to get Tomcat to work with 100% dynamic content, and I have
this issue:

I created a servlet called Painter to perform an XSLT on an xml file.  I set
up the servlet mapping in the web.xml file, called it painter, mapping to
'*.axml'.  So far, so good.  Any request to the server now gets translated,
for example 'foo.axml' comes in on the request, and the servlet loads
foo.xml and transforms it and sends the response back out.

Now, for the problem.  Since I want ALL content to be dynamic, I added a
<welcome-file>Index.axml</welcome-file> to my web.xml file.  No dice, still
serves up index.html.  Deleted index.html, just shows a directory listing.
I knew that this had to work, because JSPs do this.  I ended up doing a
'touch Index.axml' in the /web-apps/foo and got the thing to work.

Question is:  Is this a bug, or a feature?  I am now working, but I believe
that this is a bug.  If you think it is a bug, could you point me in the
general direction, so that I can try to submit a patch to fix it.

Thanks
Scott Sanders