This is a two part question:
1) Does anyone have an elegant solution to the "htdocs problem" vis a vis importing files via the default "browser" functionality.
If you have a WORKAREA with a "htdocs" and a "templatdata" breakdown like this:
branch/WORKAREA/username/htdocs
/templatedata
And you allow people to pick htdocs/images/myimage.gif files inside of a template stored beneath 'templatedata', the browser that the user uses to pick the name of the file includes the path "htdocs" (e.g., "/htdocs/images/myimage.gif") when what you really want is just "/images/myimages.gif".
Has anyone come up with a nice way around this?
2) The second part of my question is that I'm trying to write my own Java-based callout utility that does the same thing that the browser item does, except it strips off the leading "/htdocs" before saving the DCR.
I've got a Java class all written up and ready to go, as described on page 179 in the TST Classic Developer's Guide and I've packaged it in the com.interwoven.dc100.api package (cuz it definitely isn't working even in my own package), and I stuck the class in the iw/java-callout-api/examples/com/interwoven/dc100/api directory and in my callout section of my datacapture.cfg, I've got:
callout type='java-class'
label='JBrowser'
location='http://localhost/iw/java-callout-api/examples'
class='com.interwoven.dc100.api.JBrowser'
And it can never find the class! Am I doing something wrong?
Thanks in advance,
Tom