struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: <html:base> tag
Date Tue, 17 Dec 2002 06:53:36 GMT
You could try using the <html:img> tag:
http://jakarta.apache.org/struts/userGuide/struts-html.html#img

David






>From: "Amit Badheka" <amit@direct2s.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Subject: Re: <html:base> tag
>Date: Tue, 17 Dec 2002 12:03:29 +0530
>
>I am using 1.1b2 version. and, I know it works fine.
>I used it in my earlier application.
>
>But i don't know whay it is generating url like this.
>
>My image path is relative path. So it looks like ../../images/abc.gif.
>
>Amit.
>
>
>----- Original Message -----
>From: "David Graham" <dgraham1980@hotmail.com>
>To: <struts-user@jakarta.apache.org>
>Sent: Tuesday, December 17, 2002 11:47 AM
>Subject: Re: <html:base> tag
>
>
> > What version of Struts are you using?  The recent <html:base> code looks
>ok.
> >   It just constructs the url from request.getRequestURI().  What do your
> > image paths look like?
> >
> > David
> >
> >
> >
> >
> >
> >
> > >From: "Amit Badheka" <amit@direct2s.com>
> > >Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > >To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > >Subject: <html:base> tag
> > >Date: Tue, 17 Dec 2002 11:30:31 +0530
> > >
> > >HI All,
> > >
> > >I have a problem with displaying images in my jsp page. I am giving
> > >relative path in the page. If I call the page directly it shows the
>images.
> > >But If I call the page from struts Template then it is not showing any
> > >images.
> > >
> > >i have a dir structure like -
> > >
> > >common\
> > >      template.jsp
> > >jsp\
> > >    somefolder\
> > >         header.jsp
> > >     container.jsp (struts template definition)
> > >
> > >if I calls header directly it shows the images. But if I calls
> > >container.jsp (which puts the header.jsp) then it is not showing any
> > >images.
> > >I am also putting the <html:base /> tag in each page.
> > >what I observed is that my generated html code contains base tag as 
>below
>,
> > >but-
> > >     <base
> > 
> >href="http://localhost:7001/ManageStyle/jsp/ecatalogManageStartPage.jsp">
> > >it should be like -
> > >     <base
> >
> >href="http://localhost:7001/ManageStyle/jsp/ecatalog/ManageStartPage.jsp">
> > >
> > >                 ^
> > >
> > >                 ||
> > >
> > >
> > >please help.
> > >
> > >AB.
> > >
> >
> >
> > _________________________________________________________________
> > The new MSN 8: advanced junk mail protection and 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > --
> > To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
> >
> >
> >
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message