Hi all,
I am developing an application that has a file upload module in it. I'm using uptag.jar from to upload files into ONE specific directory on my application server. Once they are uploaded I want to give the user the ability to view all the files uploaded in that directory.
I've chosen to use <jsp:include page="mydirectory"></jsp:include> in one of my pages. It works as planed however when viewing that page tomcat's ugly directory browsing stylesheet overrides my application's and formats everything in ugly blue and does various things that I do not want (like displaying the server and directory name... yada yada). Since my application uses it's own style sheet (purple ) I need to configure tomcat's default direct browsing to match that of my application. I've researched and it seems i've two options. Edit the default servlet or enable localXsltFile. I chose the later.
However I added this tag into my web.xml file
<init-param>
<param-name>localXsltFile</param-name>
<param-value>true</param-value>
</init-param>
It does nothing. I'm not sure as to what I'm supposed to specify as the default value and null was the default so I instinctivly added true. I also put my localXsltFile in the directory I want browsed. Does anyone have any experience with customizing the directory browsing styles?
I am developing an application that has a file upload module in it. I'm using uptag.jar from to upload files into ONE specific directory on my application server. Once they are uploaded I want to give the user the ability to view all the files uploaded in that directory.
I've chosen to use <jsp:include page="mydirectory"></jsp:include> in one of my pages. It works as planed however when viewing that page tomcat's ugly directory browsing stylesheet overrides my application's and formats everything in ugly blue and does various things that I do not want (like displaying the server and directory name... yada yada). Since my application uses it's own style sheet (purple ) I need to configure tomcat's default direct browsing to match that of my application. I've researched and it seems i've two options. Edit the default servlet or enable localXsltFile. I chose the later.
However I added this tag into my web.xml file
<init-param>
<param-name>localXsltFile</param-name>
<param-value>true</param-value>
</init-param>
It does nothing. I'm not sure as to what I'm supposed to specify as the default value and null was the default so I instinctivly added true. I also put my localXsltFile in the directory I want browsed. Does anyone have any experience with customizing the directory browsing styles?