You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Nikolai <jn...@is2inc.com> on 2003/06/06 00:33:41 UTC

Tiles weirdness...

This may or may not be a Tiles issue nor may it be an issue with Struts 
in general. We are just pounding our heads trying to figure this out...

Here is a simple example:

------------
<%@ taglib uri="/tags/tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<tiles:importAttribute />

<html>
<head>
<title><tiles:getAsString name="title"/></title>

<tiles:insert attribute="head"/>

</head> ....
-------------

Using ngrep (a command line snoop tool) we get the following output:

-------------
T 192.168.168.100:80 -> 192.168.168.232:50957 [A]
   HTTP/1.1 200 ..Date: Thu, 05 Jun 2003 21:55:01 GMT..Server: 
Apache..Content-Type: text/html;charset=ISO-8859-1..Set-Cook
   ie: JSESSIONID=3D7944F0226743B0686F2D394BDF7506; 
Path=/ajinet..Transfer-Encoding: chunked..X-Cache: MISS from ajife.drif
   twood.com..Connection: close....a1 .......    .    .    .    ..    .  
       .    .        .        .        .        .
         .        .        .    .    .    .        .    .    .        .  
   .    ...75 ..<!DOCTYPE HTML PUBLIC "-//W3C//DTD
   HTML 4.01 Transitional//EN">...........<html>.<head>.<title>Aji 
Networks</title>....14b.....<meta http-equiv="Content-Ty
   pe" content="text/html; charset=ISO-8859-1">.<link rel="stylesheet" 
type="text/css" href="/ajinet/css/home.css" title="f
   onts">...</head>..
-------------

The interesting parts are the various characters "a1", "75", "14b", 
etc... which are returned. Some browsers do not bother displaying these 
characters while others (IE 6.x and Netscape 4.7) display them. The 
only reason I mention Tiles is that every where I have a <tiles:insert> 
tag, we get a random set of characters.

Any help or suggestions?
Thanks,
  - John




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


Re: [BULK] Re: Tiles weirdness...

Posted by John Nikolai <jn...@is2inc.com>.
Are you referring to the <tiles:importAttribute />?

Unfortunately we need this tag in order to get some of the attributes 
we use in scope:

---------
<logic:present name="promo_list">
	<tiles:insert attribute="promos">
		<tiles:put name="promo_list" beanName="promo_list" beanScope="tile" />
	</tiles:insert>
</logic:present>
---------

Thanks,
  - John


On Thursday, June 5, 2003, at 03:41 PM, Mark Lowe wrote:

> what happens if you try without
>
> <tile:userAttibute />
>
> ?
>
> or do you need something other than "title" ?
>
>
> On Thursday, Jun 5, 2003, at 23:33 Europe/London, John Nikolai wrote:
>
>>
>> This may or may not be a Tiles issue nor may it be an issue with 
>> Struts in general. We are just pounding our heads trying to figure 
>> this out...
>>
>> Here is a simple example:
>>
>> ------------
>> <%@ taglib uri="/tags/tiles" prefix="tiles" %>
>> <%@ taglib uri="/tags/struts-html" prefix="html" %>
>> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
>>
>> <tiles:importAttribute />
>>
>> <html>
>> <head>
>> <title><tiles:getAsString name="title"/></title>
>>
>> <tiles:insert attribute="head"/>
>>
>> </head> ....
>> -------------
>>
>> Using ngrep (a command line snoop tool) we get the following output:
>>
>> -------------
>> T 192.168.168.100:80 -> 192.168.168.232:50957 [A]
>>   HTTP/1.1 200 ..Date: Thu, 05 Jun 2003 21:55:01 GMT..Server: 
>> Apache..Content-Type: text/html;charset=ISO-8859-1..Set-Cook
>>   ie: JSESSIONID=3D7944F0226743B0686F2D394BDF7506; 
>> Path=/ajinet..Transfer-Encoding: chunked..X-Cache: MISS from > 
>> ajife.drif
>>   twood.com..Connection: close....a1 .......    .    .    .    ..    
>> .        .    .        .        .        .        .
>>         .        .        .    .    .    .        .    .    .        
>> .    .    ...75 ..<!DOCTYPE HTML PUBLIC "-//W3C//DTD
>>   HTML 4.01 Transitional//EN">...........<html>.<head>.<title>Aji 
>> Networks</title>....14b.....<meta http-equiv="Content-Ty
>>   pe" content="text/html; charset=ISO-8859-1">.<link rel="stylesheet" 
>> type="text/css" href="/ajinet/css/home.css" title="f
>>   onts">...</head>..
>> -------------
>>
>> The interesting parts are the various characters "a1", "75", "14b", 
>> etc... which are returned. Some browsers do not bother displaying 
>> these characters while others (IE 6.x and Netscape 4.7) display them. 
>> The only reason I mention Tiles is that every where I have a 
>> <tiles:insert> tag, we get a random set of characters.
>>
>> Any help or suggestions?
>> Thanks,
>>  - John
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Re: Tiles weirdness...

Posted by Mark Lowe <ma...@talk21.com>.
what happens if you try without

<tile:userAttibute />

?

or do you need something other than "title" ?


On Thursday, Jun 5, 2003, at 23:33 Europe/London, John Nikolai wrote:

>
> This may or may not be a Tiles issue nor may it be an issue with 
> Struts in general. We are just pounding our heads trying to figure 
> this out...
>
> Here is a simple example:
>
> ------------
> <%@ taglib uri="/tags/tiles" prefix="tiles" %>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
>
> <tiles:importAttribute />
>
> <html>
> <head>
> <title><tiles:getAsString name="title"/></title>
>
> <tiles:insert attribute="head"/>
>
> </head> ....
> -------------
>
> Using ngrep (a command line snoop tool) we get the following output:
>
> -------------
> T 192.168.168.100:80 -> 192.168.168.232:50957 [A]
>   HTTP/1.1 200 ..Date: Thu, 05 Jun 2003 21:55:01 GMT..Server: 
> Apache..Content-Type: text/html;charset=ISO-8859-1..Set-Cook
>   ie: JSESSIONID=3D7944F0226743B0686F2D394BDF7506; 
> Path=/ajinet..Transfer-Encoding: chunked..X-Cache: MISS from > ajife.drif
>   twood.com..Connection: close....a1 .......    .    .    .    ..    . 
>        .    .        .        .        .        .
>         .        .        .    .    .    .        .    .    .        . 
>    .    ...75 ..<!DOCTYPE HTML PUBLIC "-//W3C//DTD
>   HTML 4.01 Transitional//EN">...........<html>.<head>.<title>Aji 
> Networks</title>....14b.....<meta http-equiv="Content-Ty
>   pe" content="text/html; charset=ISO-8859-1">.<link rel="stylesheet" 
> type="text/css" href="/ajinet/css/home.css" title="f
>   onts">...</head>..
> -------------
>
> The interesting parts are the various characters "a1", "75", "14b", 
> etc... which are returned. Some browsers do not bother displaying 
> these characters while others (IE 6.x and Netscape 4.7) display them. 
> The only reason I mention Tiles is that every where I have a 
> <tiles:insert> tag, we get a random set of characters.
>
> Any help or suggestions?
> Thanks,
>  - John
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


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