Please see my comments inline:
2009/5/21 Jack Liu <[email protected]>
> Hi, Vijaywargiya
> I created a directory templates under directory ${ofbiz}/hot-deploy/cbs.
> Cbs is my customized component and need save template files. Now I want to
> write a method to process uploaded files and save them under directory
> templates.
> And java code is located in directory cbs/src, of course.
> So I must get the directory of templates, how could I do in java code?
>
Please take a look at the sample example in the link shown below (take a
look at the upload form shown below on the page):
https://localhost:8443/catalog/control/EditProductContent?productId=GZ-2644
>
> By the way, cbs is temporarily located in directory hot-deploy and it will
> be placed in directory applications, so the way to get directory templates
> must be ok in these two scenarios.
I wouldn't prefer to put custom code in the applications directory.
hot-deploy directory is provided to put all your custom development.
But yes it is good if you would like to contribute code in the components
present inside applications directory.
--
Ashish
>
> Thank you,
> > Jack Liu
> >
> >
>