Hello everybody,
My web.xml for Orbeon uses a form login with is : <form-login-config> <form-login-page>/login.html</form-login-page> </form-login-config> Inside login.html I have this tag <img alt="Link" width="160" height="80" src="logo.png" /> but it can't find the image logo.png. The logo.png file is inside the same folder than the login.html file (under /resources/apps). Where did I do wrong ? Thank you for your help. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Did you look in the orbeon-resources-public.jar or
orbeon-resources-private.jar ? I looked in the latest build and didn't find them, but the resources libraries. Mentioned here: http://wiki.orbeon.com/forms/doc/developer-guide/packaging-and-deployment#TOC-War-structure Cheers, Hank On Tue, May 21, 2013 at 6:40 AM, ellobi2 <[hidden email]> wrote: > Hello everybody, > My web.xml for Orbeon uses a form login with is : > <form-login-config> > <form-login-page>/login.html</form-login-page> > </form-login-config> > > Inside login.html I have this tag > <img alt="Link" width="160" height="80" src="logo.png" /> > > but it can't find the image logo.png. > > The logo.png file is inside the same folder than the login.html file (under > /resources/apps). > Where did I do wrong ? > > Thank you for your help. > > -- > You received this message because you are subscribed to the Google Groups > "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [hidden email]. > To post to this group, send email to [hidden email]. > > -- Hank Ratzesberger XMLWerks.com -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Thank you for your answer. I wasn't clear in my question. The file logo.png is mine. The problem is I can't make the src attribute in<img alt="Link" width="160" height="80" src="logo.png" /> reference this file logo.png. I tried to put this file in many places inside orbeon (apps, apps/config) but it still can't find it. 2013/5/22 Hank Ratzesberger <[hidden email]> Did you look in the orbeon-resources-public.jar or You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Hi,
Have you changed the page-flow.xml? The default file has a fairly complicated files element describing what files should be delivered without any processing. Somewhat challenging to my regex skills, you may want to try something very simple temporarily: <files path="(?!/([^/]+)/service/).+\.(gif|css|pdf|json|js|png|jpg|xsd|htc|ico|swf|html|htm|txt)" /> You can also specify the resource handler (prefix oxf:), although by default it will look in the lib's I suggested then your resource directory. src="oxf:/path/in/resources/dir/logo.png" HTH, Hank On Wed, May 22, 2013 at 12:01 AM, slide slide <[hidden email]> wrote: > Thank you for your answer. > I wasn't clear in my question. The file logo.png is mine. The problem is I > can't make the src attribute in > > <img alt="Link" width="160" height="80" src="logo.png" /> > > reference this file logo.png. I tried to put this file in many places inside > orbeon (apps, apps/config) but it still can't find it. > Any idea ? > > > > 2013/5/22 Hank Ratzesberger <[hidden email]> >> >> Did you look in the orbeon-resources-public.jar or >> orbeon-resources-private.jar ? >> >> I looked in the latest build and didn't find them, but the resources >> libraries. >> >> Mentioned here: >> >> >> http://wiki.orbeon.com/forms/doc/developer-guide/packaging-and-deployment#TOC-War-structure >> >> Cheers, >> Hank >> >> >> On Tue, May 21, 2013 at 6:40 AM, ellobi2 <[hidden email]> wrote: >> > Hello everybody, >> > My web.xml for Orbeon uses a form login with is : >> > <form-login-config> >> > <form-login-page>/login.html</form-login-page> >> > </form-login-config> >> > >> > Inside login.html I have this tag >> > <img alt="Link" width="160" height="80" src="logo.png" /> >> > >> > but it can't find the image logo.png. >> > >> > The logo.png file is inside the same folder than the login.html file >> > (under >> > /resources/apps). >> > Where did I do wrong ? >> > >> > Thank you for your help. >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Orbeon Forms" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to [hidden email]. >> > To post to this group, send email to [hidden email]. >> > >> > >> >> >> >> -- >> Hank Ratzesberger >> XMLWerks.com >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Orbeon Forms" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/orbeon/LpSvdiQn71Y/unsubscribe?hl=en. >> To unsubscribe from this group and all its topics, send an email to >> [hidden email]. >> >> To post to this group, send email to [hidden email]. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [hidden email]. > To post to this group, send email to [hidden email]. > > -- Hank Ratzesberger XMLWerks.com -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
In reply to this post by mno
The idea of the apps directory is to have in subdirectories independent applications, each with its own page-flow.xml. So, typically, you wouldn't have any thing directly under apps, but rather under apps/my-app, with that specific app accessible as /my-app.
In the case of the login page, or for other resources that are not specific to an app, I would recommend putting those outside of the apps directory, for instance under resources/images. Then you would reference your logo as src="/images/logo.png". Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |