You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shark <bl...@gmail.com> on 2004/12/04 00:24:53 UTC

images not showing up

Hi All,

I cant seem to see the images in Home.html when I use a border component. 

In Border.html I link using a simple 
   <img id=cti1 src="./includes/images/button_submit.gif" alt=" "/>

file structure for my webapp is like this

-/
 | images
 | search
 | WEB-INF
 - | Border.jwc
   | Border.html

ive tried src paths like
../includes/
/includes
includes
./includes

None seem to work. 


S.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: images not showing up

Posted by Tom Klaasen <ta...@tomk.be>.
Have a look at 
http://jakarta.apache.org/tapestry/doc/ComponentReference/Image.html

hth,
tomK



Shark wrote:

>Hi All,
>
>I cant seem to see the images in Home.html when I use a border component. 
>
>In Border.html I link using a simple 
>   <img id=cti1 src="./includes/images/button_submit.gif" alt=" "/>
>
>file structure for my webapp is like this
>
>-/
> | images
> | search
> | WEB-INF
> - | Border.jwc
>   | Border.html
>
>ive tried src paths like
>../includes/
>/includes
>includes
>./includes
>
>None seem to work. 
>
>
>S.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: images not showing up

Posted by Marcus Brito <mb...@gmail.com>.
On Thu, 9 Dec 2004 17:18:51 -0600, Shark <bl...@gmail.com> wrote:

> I'm not doing any rewriting/aliasing at all.  I was wondering
> /images/button_submit.gif" is say www.myapp.com/images/button***?

Use context assets for this. The URL specified for context assets are
relative to the application context. So, if you use
/images/button_submit.gif as the URL for the asset, it will resolve to

www.yourapp.com/yourcontext/images/button_submit.gif


-- Marcus Brito

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: images not showing up

Posted by Shark <bl...@gmail.com>.
I'm not doing any rewriting/aliasing at all.  I was wondering
/images/button_submit.gif" is say www.myapp.com/images/button***?

So with a / i can specify any relative URI pointing to the image. For
some reason I cant get it to work.

I could include a css on the Home.html using "includes/images/logo.gif"
it doesnt work with /includes/images/logo.gif" ... it appeared to be
taking the exact path to the image. But then i tried my Login.html
which is in /users/Login.html using ../includes/images/logo.gif and it
doesnt work.!!

S


On Wed, 8 Dec 2004 10:12:59 -0800, Galen Meurer
<ta...@galenmeurer.com> wrote:
> Given the file structure of your webapp, I don't see where "includes" comes
> into play unless you have some rewriting/aliasing going on.
> 
> Did you try?
> 
> <img id=cti1 src="/images/button_submit.gif" alt=" "/>
> 
> We do this without problem in our app.
> 
> G;
> 
> 
> 
> ----- Original Message -----
> From: "Shark" <bl...@gmail.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Friday, December 03, 2004 3:24 PM
> Subject: images not showing up
> 
> > Hi All,
> >
> > I cant seem to see the images in Home.html when I use a border component.
> >
> > In Border.html I link using a simple
> >    <img id=cti1 src="./includes/images/button_submit.gif" alt=" "/>
> >
> > file structure for my webapp is like this
> >
> > -/
> >  | images
> >  | search
> >  | WEB-INF
> >  - | Border.jwc
> >    | Border.html
> >
> > ive tried src paths like
> > ../includes/
> > /includes
> > includes
> > ./includes
> >
> > None seem to work.
> >
> >
> > S.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: images not showing up

Posted by Raffaele Cigni <rc...@byte-code.com>.
Il mer, 2004-12-08 alle 19:12, Galen Meurer ha scritto:
> Given the file structure of your webapp, I don't see where "includes" comes
> into play unless you have some rewriting/aliasing going on.
> 
> Did you try?
> 
> <img id=cti1 src="/images/button_submit.gif" alt=" "/>

why don't use assets?

<img jwcid="@Image" image="ognl:assets.my_button_submit_asset" id=cti1
src="/images/button_submit.gif" alt=" "/>

define the asset in .page:

<context-asset name="OSWlogo" path="/images/button_submit.gif"/>

> 
> We do this without problem in our app.
> 
> G;
> 
> ----- Original Message -----
> From: "Shark" <bl...@gmail.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Friday, December 03, 2004 3:24 PM
> Subject: images not showing up
> 
> 
> > Hi All,
> >
> > I cant seem to see the images in Home.html when I use a border component.
> >
> > In Border.html I link using a simple
> >    <img id=cti1 src="./includes/images/button_submit.gif" alt=" "/>
> >
> > file structure for my webapp is like this
> >
> > -/
> >  | images
> >  | search
> >  | WEB-INF
> >  - | Border.jwc
> >    | Border.html
> >
> > ive tried src paths like
> > ../includes/
> > /includes
> > includes
> > ./includes
> >
> > None seem to work.
> >
> >
> > S.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
-- 
Raffaele Cigni <rc...@byte-code.com>

Re: images not showing up

Posted by Galen Meurer <ta...@galenmeurer.com>.
Given the file structure of your webapp, I don't see where "includes" comes
into play unless you have some rewriting/aliasing going on.

Did you try?

<img id=cti1 src="/images/button_submit.gif" alt=" "/>

We do this without problem in our app.

G;

----- Original Message -----
From: "Shark" <bl...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, December 03, 2004 3:24 PM
Subject: images not showing up


> Hi All,
>
> I cant seem to see the images in Home.html when I use a border component.
>
> In Border.html I link using a simple
>    <img id=cti1 src="./includes/images/button_submit.gif" alt=" "/>
>
> file structure for my webapp is like this
>
> -/
>  | images
>  | search
>  | WEB-INF
>  - | Border.jwc
>    | Border.html
>
> ive tried src paths like
> ../includes/
> /includes
> includes
> ./includes
>
> None seem to work.
>
>
> S.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: images not showing up

Posted by Howard Lewis Ship <hl...@gmail.com>.
So, where is this includes directory?

If its a "peer" to your applications' context root directory, then it
won't be accessible via HTTP, since its not mapped to a web
application context.

On the other hand, if it was inside your web application (i.e., a peer
to "images" or "includes") then you could reference it as <img
src="includes/images/button_submit.gif"/>.

Tapestry 3.0 applications run in such a way that the base URL is
always the root of the web application context.  Since this is where
page HTML templates live, it allows page HTML templates to preview
correctly and still be valid for running applications.

On Fri, 3 Dec 2004 17:24:53 -0600, Shark <bl...@gmail.com> wrote:
> Hi All,
> 
> I cant seem to see the images in Home.html when I use a border component.
> 
> In Border.html I link using a simple
>    <img id=cti1 src="./includes/images/button_submit.gif" alt=" "/>
> 
> file structure for my webapp is like this
> 
> -/
>  | images
>  | search
>  | WEB-INF
>  - | Border.jwc
>    | Border.html
> 
> ive tried src paths like
> ../includes/
> /includes
> includes
> ./includes
> 
> None seem to work.
> 
> S.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org