img tag and src attribute in a login page

3 views
Skip to first unread message

ellobi2

unread,
May 21, 2013, 9:40:59 AM5/21/13
to orb...@googlegroups.com
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.

Hank Ratzesberger

unread,
May 21, 2013, 11:34:09 PM5/21/13
to orb...@googlegroups.com
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
> --
> 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 orbeon+un...@googlegroups.com.
> To post to this group, send email to orb...@googlegroups.com.
>
>



--
Hank Ratzesberger
XMLWerks.com

slide slide

unread,
May 22, 2013, 3:01:10 AM5/22/13
to orb...@googlegroups.com
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 <x...@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 orbeon+un...@googlegroups.com.

Hank Ratzesberger

unread,
May 22, 2013, 11:59:51 AM5/22/13
to orb...@googlegroups.com
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

Alessandro Vernet

unread,
May 24, 2013, 1:56:42 PM5/24/13
to orb...@googlegroups.com
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
--
View this message in context: http://discuss.orbeon.com/img-tag-and-src-attribute-in-a-login-page-tp4656802p4656816.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.
Reply all
Reply to author
Forward
0 new messages