struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksandar Matijaca <amatij...@gmail.com>
Subject Re: html:img tag question
Date Mon, 06 Jun 2005 21:37:20 GMT
I believe that doing absolute addressing as you are proposing, is probably 
against all
"best practices" of HTML design. Do some research on best-practices of HTML 
before
doing this...
 Cheers, Alex.


 On 6/6/05, Scott Purcell <spurcell@vertisinc.com> wrote: 
> 
> Hello,
> 
> I have build a site using the struts framework with a heavy use of the 
> html:img tag like so.
> 
> <html:img src="/images/spacer.gif" width="1" />
> 
> And it does a great job at including the context of the application and 
> therefore giving me a page source of such:
> <img src="/mysite/images/spacer.gif" width="1">
> 
> And all is happy.
> But today, I realized that a lot of sites use a fully qualified: <img 
> src="http://mysite/mycontext/images/images/spacer.gif">
> for their sites. I would like to be able to do that.
> 
> So using html: shortcuts, can this be done? Or do I have to go outside the 
> framework?
> 
> Thanks,
> Scott
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message