I'm building the tree menu file tree_items.js in a servlet/JSP.
One thing that doesn't work is the icons in the menu structure.
They are specified with image.src(filepath).
The JSP files are located under the application map in Tomcat and the icons are in a map called icons in the application map. So image.src(icons/imagename.gif) is used as the filepath. And this works fine if I run the page as a HTML file. But it doesn't work for a JSP file coming from Tomcat.
I have tried different variants of the filepath; an absolute filepath from C: and to have the the imageicons in the same map as the JSP file and just use image(imagename.gif). But it doesn't work. Anyone who has an idea?
/Mats
One thing that doesn't work is the icons in the menu structure.
They are specified with image.src(filepath).
The JSP files are located under the application map in Tomcat and the icons are in a map called icons in the application map. So image.src(icons/imagename.gif) is used as the filepath. And this works fine if I run the page as a HTML file. But it doesn't work for a JSP file coming from Tomcat.
I have tried different variants of the filepath; an absolute filepath from C: and to have the the imageicons in the same map as the JSP file and just use image(imagename.gif). But it doesn't work. Anyone who has an idea?
/Mats