Treeview weblet does not display on System i/Apache Web server
| Date: |
12 December 2008 |
| Product/Release: |
Visual LANSA V11 (all Service
Packs) |
| Abstract: |
Treeview weblet does not display on
System i/Apache Web server due to an
unregistered extension '.htc'
|
| Submitted By: |
LANSA Technical Support |
Issue:
On some System i Web server configurations, the treeview weblet
may not display in a WAM application. No error message will be
shown, only a blank space where the treeview should be

Reason:
One possibility for this issue is that the .htc extension
which is used to display the treeview is not registered in the
Apache configuration. As an unknown extension, Apache sends it
out with the MIME type www/unknown, stopping Internet
Explorer from showing the treeview. The correct MIME type is
text/x-component
If you are having trouble displaying treeviews on your Apache
Web server, one possible solution is to manually associate the
MIME type text/x-component with the .htc extension. To do this,
add the following line to the section for the /images directory
in httpd.conf:
AddType text/x-component .htc
For example, the images directory section might look like:
Alias /images/ /devuserimg/
<Directory /devuserimg>
order allow,deny
allow from all
options +Includes
AddType text/x-component .htc
</Directory>
|