Static image files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Static image files

Илья Михайлов
Hallo!

I have a lot of images and i want create folder to open this images in ofbiz. But when i try to reach image by url, tomcat returns 404.
Please, show me the way to solve this problem.
Reply | Threaded
Open this post in threaded view
|

Re: Static image files

Aditya Sharma
Hi,

You will have to create a folder in webapp and add it to allowedPaths
specified in web.xml of your component.

At what location, have you stored the images now?



Thanks and Regards,
*Aditya Sharma* | Enterprise Software Engineer
HotWax Systems <http://www.hotwaxsystems.com/>
Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center, Indore,
M.P 452010
Linkedin: *Aditya Sharma* <https://www.linkedin.com/in/aditya-p-sharma/>



On Mon, May 13, 2019 at 2:00 PM Илья Михайлов
<[hidden email]> wrote:

> Hallo!
>
> I have a lot of images and i want create folder to open this images in
> ofbiz. But when i try to reach image by url, tomcat returns 404.
> Please, show me the way to solve this problem.
>
Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Static image files

Aditya Sharma
As I said you have to move it to webapp.

Refer
framework/resources/templates/web.xml:55
themes/common/webapp/images

Thanks and Regards,
*Aditya Sharma* | Enterprise Software Engineer
HotWax Systems <http://www.hotwaxsystems.com/>
Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center, Indore,
M.P 452010
Linkedin: *Aditya Sharma* <https://www.linkedin.com/in/aditya-p-sharma/>



On Mon, May 13, 2019 at 2:50 PM Илья Михайлов <[hidden email]>
wrote:

> i create folder images in the root.
>
>
> Понедельник, 13 мая 2019, 12:06 +03:00 от Aditya Sharma <
> [hidden email]>:
>
> Hi,
>
> You will have to create a folder in webapp and add it to allowedPaths
> specified in web.xml of your component.
>
> At what location, have you stored the images now?
>
>
>
> Thanks and Regards,
> *Aditya Sharma* | Enterprise Software Engineer
> HotWax Systems <http://www.hotwaxsystems.com/>
> Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center,
> Indore, M.P 452010
> Linkedin: *Aditya Sharma* <https://www.linkedin.com/in/aditya-p-sharma/>
>
>
>
> On Mon, May 13, 2019 at 2:00 PM Илья Михайлов <
> [hidden email]> wrote:
>
> Hallo!
>
> I have a lot of images and i want create folder to open this images in
> ofbiz. But when i try to reach image by url, tomcat returns 404.
> Please, show me the way to solve this problem.
>
>
>
> ______________________
> Разаработка и продвижение сайтов
> https://www.facebook.com/sitebuypodolsk/
>
Reply | Threaded
Open this post in threaded view
|

Re[4]: Static image files

Илья Михайлов
Thanks a lot. I done it. You very helpful.


>Понедельник, 13 мая 2019, 12:35 +03:00 от Aditya Sharma <[hidden email]>:
>
>As I said you have to move it to webapp.
>
>Refer
>framework/resources/templates/web.xml:55
>themes/common/webapp/images
>
>Thanks and Regards,
>*Aditya Sharma* | Enterprise Software Engineer
>HotWax Systems < http://www.hotwaxsystems.com/ >
>Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center, Indore,
>M.P 452010
>Linkedin: *Aditya Sharma* < https://www.linkedin.com/in/aditya-p-sharma/ >
>
>
>
>On Mon, May 13, 2019 at 2:50 PM Илья Михайлов < [hidden email] >
>wrote:
>
>> i create folder images in the root.
>>
>>
>> Понедельник, 13 мая 2019, 12:06 +03:00 от Aditya Sharma <
>>  [hidden email] >:
>>
>> Hi,
>>
>> You will have to create a folder in webapp and add it to allowedPaths
>> specified in web.xml of your component.
>>
>> At what location, have you stored the images now?
>>
>>
>>
>> Thanks and Regards,
>> *Aditya Sharma* | Enterprise Software Engineer
>> HotWax Systems < http://www.hotwaxsystems.com/ >
>> Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center,
>> Indore, M.P 452010
>> Linkedin: *Aditya Sharma* < https://www.linkedin.com/in/aditya-p-sharma/ >
>>
>>
>>
>> On Mon, May 13, 2019 at 2:00 PM Илья Михайлов <
>>  [hidden email] > wrote:
>>
>> Hallo!
>>
>> I have a lot of images and i want create folder to open this images in
>> ofbiz. But when i try to reach image by url, tomcat returns 404.
>> Please, show me the way to solve this problem.
>>
>>
>>
>> ______________________
>> Разаработка и продвижение сайтов
>>  https://www.facebook.com/sitebuypodolsk/
>>


______________________
Разаработка и продвижение сайтов
https://www.facebook.com/sitebuypodolsk/  
Reply | Threaded
Open this post in threaded view
|

Re: Re[4]: Static image files

Pierre Smits-3
Best way to have your existing images folder accessible from within ofbiz
is by applying a symbolic link from within the webapp folder to the actual
folder.

Best regards,

Pierre Smits

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
*Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
since 2008*
Apache Steve <https://steve.apache.org>, committer


On Mon, May 13, 2019 at 12:13 PM Илья Михайлов
<[hidden email]> wrote:

> Thanks a lot. I done it. You very helpful.
>
>
> >Понедельник, 13 мая 2019, 12:35 +03:00 от Aditya Sharma <
> [hidden email]>:
> >
> >As I said you have to move it to webapp.
> >
> >Refer
> >framework/resources/templates/web.xml:55
> >themes/common/webapp/images
> >
> >Thanks and Regards,
> >*Aditya Sharma* | Enterprise Software Engineer
> >HotWax Systems < http://www.hotwaxsystems.com/ >
> >Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center,
> Indore,
> >M.P 452010
> >Linkedin: *Aditya Sharma* < https://www.linkedin.com/in/aditya-p-sharma/
> >
> >
> >
> >
> >On Mon, May 13, 2019 at 2:50 PM Илья Михайлов < [hidden email] >
> >wrote:
> >
> >> i create folder images in the root.
> >>
> >>
> >> Понедельник, 13 мая 2019, 12:06 +03:00 от Aditya Sharma <
> >>  [hidden email] >:
> >>
> >> Hi,
> >>
> >> You will have to create a folder in webapp and add it to allowedPaths
> >> specified in web.xml of your component.
> >>
> >> At what location, have you stored the images now?
> >>
> >>
> >>
> >> Thanks and Regards,
> >> *Aditya Sharma* | Enterprise Software Engineer
> >> HotWax Systems < http://www.hotwaxsystems.com/ >
> >> Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center,
> >> Indore, M.P 452010
> >> Linkedin: *Aditya Sharma* <
> https://www.linkedin.com/in/aditya-p-sharma/ >
> >>
> >>
> >>
> >> On Mon, May 13, 2019 at 2:00 PM Илья Михайлов <
> >>  [hidden email] > wrote:
> >>
> >> Hallo!
> >>
> >> I have a lot of images and i want create folder to open this images in
> >> ofbiz. But when i try to reach image by url, tomcat returns 404.
> >> Please, show me the way to solve this problem.
> >>
> >>
> >>
> >> ______________________
> >> Разаработка и продвижение сайтов
> >>  https://www.facebook.com/sitebuypodolsk/
> >>
>
>
> ______________________
> Разаработка и продвижение сайтов
> https://www.facebook.com/sitebuypodolsk/
>