You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Grotzke <ma...@javakaffee.de> on 2008/03/18 15:41:52 UTC

Re: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Hi,

On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> Martin,
> 
> I'm guessing your mail client converted Josh's message because it
> rendered the & in the url as &amp; - just as you have explained and
> shown.
Ok, thanx :)

>  As he said, url's with &amp; in place of & are actually correct
> and should not cause problems (I personally have never seen these urls
> cause any).
I would say that a request parameter appended with &amp;param=value
would be seen by the server as amp;param instead of just param.

Cheers,
Martin

> 
> chris
> 
> Martin Grotzke wrote:
> > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> >   
> >> If I am understanding you correctly, you are getting something like
> >> this in your source:
> >>
> >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> >>     
> > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> > so the & is rendered as &amp;
> >
> > Cheers,
> > Martin
> >
> >
> >   
> >> That is actually the correct behavior and it shouldn't be causing a
> >> problem in your browser. Are you seeing a problem?
> >>
> >> http://htmlhelp.com/tools/validator/problems.html#amp
> >>
> >> Josh
> >>
> >>
> >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke
> >> <ma...@javakaffee.de> wrote:
> >>     
> >>> Hi,
> >>>
> >>> I have a an html element (iframe) that get's a property of my page class
> >>> (the current query string) appended to its src attribute.
> >>>
> >>> The query string may contain the "&" char, which always gets expanded as
> >>> "&amp;". Is there any possibility to prevent T5 from encoding this char?
> >>>
> >>> Thanx && cheers,
> >>> Martin
> >>>
> >>>
> >>>
> >>>       
> >>
> >>     

Re: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by Martin Grotzke <ma...@javakaffee.de>.
Hi,

On Tue, 2008-03-18 at 17:51 +0100, Filip S. Adamsen wrote:
> > I would say that a request parameter appended with &amp;param=value
> > would be seen by the server as amp;param instead of just param.
> 
> W3C says otherwise: "With HTML, the browser translates "&amp;" to "&" so 
> the Web server would only see "&" and not "&amp;" in the query string of 
> the request."
> 
> http://htmlhelp.com/tools/validator/problems.html#amp
> 
> It's not a problem. I see the exact same behaviour and it's working just 
> fine. :)
You're right! It was indeed only an asumption that it would not work, I
wasn't aware that browsers not only translate entities for what is going
to the user but also for such things - what is requested elsewhere...

New day - a new thing learned, great :)

Thanx && cheers,
Martin


On Tue, 2008-03-18 at 17:51 +0100, Filip S. Adamsen wrote:
> Hi,
> 
> On 2008-03-18 15:41, Martin Grotzke wrote:
> > Hi,
> > 
> > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> >> Martin,
> >>
> >> I'm guessing your mail client converted Josh's message because it
> >> rendered the & in the url as &amp; - just as you have explained and
> >> shown.
> > Ok, thanx :)
> > 
> >>  As he said, url's with &amp; in place of & are actually correct
> >> and should not cause problems (I personally have never seen these urls
> >> cause any).
> > I would say that a request parameter appended with &amp;param=value
> > would be seen by the server as amp;param instead of just param.
> 
> W3C says otherwise: "With HTML, the browser translates "&amp;" to "&" so 
> the Web server would only see "&" and not "&amp;" in the query string of 
> the request."
> 
> http://htmlhelp.com/tools/validator/problems.html#amp
> 
> It's not a problem. I see the exact same behaviour and it's working just 
> fine. :)
> 
> -Filip
> 
> > 
> > Cheers,
> > Martin
> > 
> >> chris
> >>
> >> Martin Grotzke wrote:
> >>> On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> >>>   
> >>>> If I am understanding you correctly, you are getting something like
> >>>> this in your source:
> >>>>
> >>>> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> >>>>     
> >>> Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> >>> so the & is rendered as &amp;
> >>>
> >>> Cheers,
> >>> Martin
> >>>
> >>>
> >>>   
> >>>> That is actually the correct behavior and it shouldn't be causing a
> >>>> problem in your browser. Are you seeing a problem?
> >>>>
> >>>> http://htmlhelp.com/tools/validator/problems.html#amp
> >>>>
> >>>> Josh
> >>>>
> >>>>
> >>>> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke
> >>>> <ma...@javakaffee.de> wrote:
> >>>>     
> >>>>> Hi,
> >>>>>
> >>>>> I have a an html element (iframe) that get's a property of my page class
> >>>>> (the current query string) appended to its src attribute.
> >>>>>
> >>>>> The query string may contain the "&" char, which always gets expanded as
> >>>>> "&amp;". Is there any possibility to prevent T5 from encoding this char?
> >>>>>
> >>>>> Thanx && cheers,
> >>>>> Martin
> >>>>>
> >>>>>
> >>>>>
> >>>>>       
> >>>>     
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

Re: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,

On 2008-03-18 15:41, Martin Grotzke wrote:
> Hi,
> 
> On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
>> Martin,
>>
>> I'm guessing your mail client converted Josh's message because it
>> rendered the & in the url as &amp; - just as you have explained and
>> shown.
> Ok, thanx :)
> 
>>  As he said, url's with &amp; in place of & are actually correct
>> and should not cause problems (I personally have never seen these urls
>> cause any).
> I would say that a request parameter appended with &amp;param=value
> would be seen by the server as amp;param instead of just param.

W3C says otherwise: "With HTML, the browser translates "&amp;" to "&" so 
the Web server would only see "&" and not "&amp;" in the query string of 
the request."

http://htmlhelp.com/tools/validator/problems.html#amp

It's not a problem. I see the exact same behaviour and it's working just 
fine. :)

-Filip

> 
> Cheers,
> Martin
> 
>> chris
>>
>> Martin Grotzke wrote:
>>> On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
>>>   
>>>> If I am understanding you correctly, you are getting something like
>>>> this in your source:
>>>>
>>>> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
>>>>     
>>> Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
>>> so the & is rendered as &amp;
>>>
>>> Cheers,
>>> Martin
>>>
>>>
>>>   
>>>> That is actually the correct behavior and it shouldn't be causing a
>>>> problem in your browser. Are you seeing a problem?
>>>>
>>>> http://htmlhelp.com/tools/validator/problems.html#amp
>>>>
>>>> Josh
>>>>
>>>>
>>>> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke
>>>> <ma...@javakaffee.de> wrote:
>>>>     
>>>>> Hi,
>>>>>
>>>>> I have a an html element (iframe) that get's a property of my page class
>>>>> (the current query string) appended to its src attribute.
>>>>>
>>>>> The query string may contain the "&" char, which always gets expanded as
>>>>> "&amp;". Is there any possibility to prevent T5 from encoding this char?
>>>>>
>>>>> Thanx && cheers,
>>>>> Martin
>>>>>
>>>>>
>>>>>
>>>>>       
>>>>     

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


Re: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by Martin Grotzke <ma...@javakaffee.de>.
Hi,

On Tue, 2008-03-18 at 10:06 -0700, Josh Canfield wrote:
> Hi Martin,
> 
> I'm confused by your statement:
> > I would say that a request parameter appended with &amp;param=value
> > would be seen by the server as amp;param instead of just param.
> 
> Does this mean that you are seeing a problem on the server side? 
Nope, as I just wrote I simply asumed that - misleadingly ;)

Cheers,
Martin


> What
> you are describing is not what I would expect, if you are seeing this
> then there might be something else going on.
> 
> Josh
> 
> On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke
> <ma...@javakaffee.de> wrote:
> > Hi,
> >
> > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > > Martin,
> > >
> > > I'm guessing your mail client converted Josh's message because it
> > > rendered the & in the url as &amp; - just as you have explained and
> > > shown.
> > Ok, thanx :)
> >
> > >  As he said, url's with &amp; in place of & are actually correct
> > > and should not cause problems (I personally have never seen these urls
> > > cause any).
> > I would say that a request parameter appended with &amp;param=value
> > would be seen by the server as amp;param instead of just param.
> >
> > Cheers,
> > Martin
> >
> > >
> > > chris
> > >
> > > Martin Grotzke wrote:
> > > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > > >
> > > >> If I am understanding you correctly, you are getting something like
> > > >> this in your source:
> > > >>
> > > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > > >>
> > > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> >
> > > > so the & is rendered as &amp;
> > > >
> > > > Cheers,
> > > > Martin
> > > >
> > > >
> > > >
> > > >> That is actually the correct behavior and it shouldn't be causing a
> > > >> problem in your browser. Are you seeing a problem?
> > > >>
> > > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > > >>
> > > >> Josh
> > > >>
> > > >>
> > > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke
> > > >> <ma...@javakaffee.de> wrote:
> > > >>
> > > >>> Hi,
> > > >>>
> > > >>> I have a an html element (iframe) that get's a property of my page class
> > > >>> (the current query string) appended to its src attribute.
> > > >>>
> > > >>> The query string may contain the "&" char, which always gets expanded as
> > > >>> "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > > >>>
> > > >>> Thanx && cheers,
> > > >>> Martin
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >>
> >
> 
> 
> 

Re: AW: AW: AW: [T5] How to get ampersand (&) rendered raw / notencodedas &?

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
I believe Josh Canfield dug up the W3C reference to begin with.

Credit where credit is due. :)

-Filip

On 2008-03-18 19:53, Martin Grotzke wrote:
> On Tue, 2008-03-18 at 19:42 +0100, Martin Kersten wrote:
>> Hi Martin (G.),
>>
>>    dude I wasn't aware of it either. Nice to know! Thanks!
> Thanx to Filip :)
> 
> Cheers,
> Martin
> 
>>
>> Cheers,
>>
>> Martin (Kersten) 
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de] 
>> Gesendet: Dienstag, 18. März 2008 19:39
>> An: Tapestry users
>> Betreff: Re: AW: AW: [T5] How to get ampersand (&) rendered raw / notencodedas &amp;?
>>
>> On Tue, 2008-03-18 at 18:53 +0100, Martin Kersten wrote:
>>> Hi Martin (G.),
>>>
>>>   and to recap it would result into &amp; replacements and it would be 
>>> interpreted by some browsers correctly and some incorrectly?
>> Hopefully all browsers would interpret &amp; correctly as & when sending the request - as Filip wrote, also referencing http://htmlhelp.com/tools/validator/problems.html#amp
>>
>>
>>> So <t:outputraw> wont help. I see. Any solution (beside providing an 
>>> iframe component). I would like to see a 'raw:' binding or do I miss 
>>> something?
>> The solution is that &amp; is totally fine and simply I was wrong when I thought this would end up with &amp; going into the request...
>>
>> So nothing has to be done or changed or anything :)
>>
>> Thanx && cheers,
>> Martin
>>
>>> Cheers,
>>>
>>> Martin (Kersten)
>>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de]
>>> Gesendet: Dienstag, 18. März 2008 18:37
>>> An: Tapestry users
>>> Betreff: Re: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &amp;?
>>>
>>> Hi Martin (K.) :)
>>>
>>> just to have this complete, the template part was this:
>>>
>>> <iframe src="http://foo/?foo=bar&${queryString}"
>>>
>>> with queryString beeing a page property...
>>>
>>> Cheers,
>>> Martin
>>>
>>>
>>>
>>> On Tue, 2008-03-18 at 18:11 +0100, Martin Kersten wrote:
>>>> Hi Martin,
>>>>
>>>>   how is the query string is appended? There is always a difference 
>>>> in writing text and html. If you write text everything gets 
>>>> converted. If you write html (raw) everything will work.
>>>>
>>>> Please just post the tml-part in question. Maybe we can give a shorty for it.
>>>>
>>>>
>>>> Cheers,
>>>>
>>>> Martin (Kersten)
>>>>
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im 
>>>> Auftrag von Josh Canfield
>>>> Gesendet: Dienstag, 18. März 2008 18:06
>>>> An: Tapestry users
>>>> Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?
>>>>
>>>> Hi Martin,
>>>>
>>>> I'm confused by your statement:
>>>>> I would say that a request parameter appended with 
>>>>> &amp;param=value would be seen by the server as amp;param instead of just param.
>>>> Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.
>>>>
>>>> Josh
>>>>
>>>> On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
>>>>> Hi,
>>>>>
>>>>> On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
>>>>>> Martin,
>>>>>>
>>>>>> I'm guessing your mail client converted Josh's message because 
>>>>>> it rendered the & in the url as &amp; - just as you have 
>>>>>> explained and shown.
>>>>> Ok, thanx :)
>>>>>
>>>>>>  As he said, url's with &amp; in place of & are actually correct 
>>>>>> and should not cause problems (I personally have never seen 
>>>>>> these urls cause any).
>>>>> I would say that a request parameter appended with 
>>>>> &amp;param=value would be seen by the server as amp;param instead of just param.
>>>>>
>>>>> Cheers,
>>>>> Martin
>>>>>
>>>>>> chris
>>>>>>
>>>>>> Martin Grotzke wrote:
>>>>>>> On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
>>>>>>>
>>>>>>>> If I am understanding you correctly, you are getting 
>>>>>>>> something like this in your source:
>>>>>>>>
>>>>>>>> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
>>>>>>>>
>>>>>>> Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
>>>>>>> so the & is rendered as &amp;
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Martin
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> That is actually the correct behavior and it shouldn't be 
>>>>>>>> causing a problem in your browser. Are you seeing a problem?
>>>>>>>>
>>>>>>>> http://htmlhelp.com/tools/validator/problems.html#amp
>>>>>>>>
>>>>>>>> Josh
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
>>>>>>>> <ma...@javakaffee.de> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I have a an html element (iframe) that get's a property of 
>>>>>>>>> my page class (the current query string) appended to its src attribute.
>>>>>>>>>
>>>>>>>>> The query string may contain the "&" char, which always gets 
>>>>>>>>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
>>>>>>>>>
>>>>>>>>> Thanx && cheers,
>>>>>>>>> Martin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
>>>>
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>

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


Re: AW: AW: AW: [T5] How to get ampersand (&) rendered raw / notencodedas &?

Posted by Martin Grotzke <ma...@javakaffee.de>.
On Tue, 2008-03-18 at 19:42 +0100, Martin Kersten wrote:
> Hi Martin (G.),
> 
>    dude I wasn't aware of it either. Nice to know! Thanks!
Thanx to Filip :)

Cheers,
Martin

> 
> 
> Cheers,
> 
> Martin (Kersten) 
> 
> -----Ursprüngliche Nachricht-----
> Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de] 
> Gesendet: Dienstag, 18. März 2008 19:39
> An: Tapestry users
> Betreff: Re: AW: AW: [T5] How to get ampersand (&) rendered raw / notencodedas &amp;?
> 
> On Tue, 2008-03-18 at 18:53 +0100, Martin Kersten wrote:
> > Hi Martin (G.),
> > 
> >   and to recap it would result into &amp; replacements and it would be 
> > interpreted by some browsers correctly and some incorrectly?
> Hopefully all browsers would interpret &amp; correctly as & when sending the request - as Filip wrote, also referencing http://htmlhelp.com/tools/validator/problems.html#amp
> 
> 
> > So <t:outputraw> wont help. I see. Any solution (beside providing an 
> > iframe component). I would like to see a 'raw:' binding or do I miss 
> > something?
> The solution is that &amp; is totally fine and simply I was wrong when I thought this would end up with &amp; going into the request...
> 
> So nothing has to be done or changed or anything :)
> 
> Thanx && cheers,
> Martin
> 
> > 
> > Cheers,
> > 
> > Martin (Kersten)
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de]
> > Gesendet: Dienstag, 18. März 2008 18:37
> > An: Tapestry users
> > Betreff: Re: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &amp;?
> > 
> > Hi Martin (K.) :)
> > 
> > just to have this complete, the template part was this:
> > 
> > <iframe src="http://foo/?foo=bar&${queryString}"
> > 
> > with queryString beeing a page property...
> > 
> > Cheers,
> > Martin
> > 
> > 
> > 
> > On Tue, 2008-03-18 at 18:11 +0100, Martin Kersten wrote:
> > > Hi Martin,
> > > 
> > >   how is the query string is appended? There is always a difference 
> > > in writing text and html. If you write text everything gets 
> > > converted. If you write html (raw) everything will work.
> > > 
> > > Please just post the tml-part in question. Maybe we can give a shorty for it.
> > > 
> > > 
> > > Cheers,
> > > 
> > > Martin (Kersten)
> > > 
> > > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im 
> > > Auftrag von Josh Canfield
> > > Gesendet: Dienstag, 18. März 2008 18:06
> > > An: Tapestry users
> > > Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?
> > > 
> > > Hi Martin,
> > > 
> > > I'm confused by your statement:
> > > > I would say that a request parameter appended with 
> > > > &amp;param=value would be seen by the server as amp;param instead of just param.
> > > 
> > > Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.
> > > 
> > > Josh
> > > 
> > > On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> > > > Hi,
> > > >
> > > > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > > > > Martin,
> > > > >
> > > > > I'm guessing your mail client converted Josh's message because 
> > > > > it rendered the & in the url as &amp; - just as you have 
> > > > > explained and shown.
> > > > Ok, thanx :)
> > > >
> > > > >  As he said, url's with &amp; in place of & are actually correct 
> > > > > and should not cause problems (I personally have never seen 
> > > > > these urls cause any).
> > > > I would say that a request parameter appended with 
> > > > &amp;param=value would be seen by the server as amp;param instead of just param.
> > > >
> > > > Cheers,
> > > > Martin
> > > >
> > > > >
> > > > > chris
> > > > >
> > > > > Martin Grotzke wrote:
> > > > > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > > > > >
> > > > > >> If I am understanding you correctly, you are getting 
> > > > > >> something like this in your source:
> > > > > >>
> > > > > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > > > > >>
> > > > > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> > > >
> > > > > > so the & is rendered as &amp;
> > > > > >
> > > > > > Cheers,
> > > > > > Martin
> > > > > >
> > > > > >
> > > > > >
> > > > > >> That is actually the correct behavior and it shouldn't be 
> > > > > >> causing a problem in your browser. Are you seeing a problem?
> > > > > >>
> > > > > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > > > > >>
> > > > > >> Josh
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > > > > >> <ma...@javakaffee.de> wrote:
> > > > > >>
> > > > > >>> Hi,
> > > > > >>>
> > > > > >>> I have a an html element (iframe) that get's a property of 
> > > > > >>> my page class (the current query string) appended to its src attribute.
> > > > > >>>
> > > > > >>> The query string may contain the "&" char, which always gets 
> > > > > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > > > > >>>
> > > > > >>> Thanx && cheers,
> > > > > >>> Martin
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > > >>
> > > >
> > > 
> > > 
> > > 
> > > --
> > > --
> > > TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
> > > 
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > 
> > > 
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

AW: AW: AW: [T5] How to get ampersand (&) rendered raw / notencodedas &?

Posted by Martin Kersten <Ma...@mercateo.com>.
Hi Martin (G.),

   dude I wasn't aware of it either. Nice to know! Thanks!


Cheers,

Martin (Kersten) 

-----Ursprüngliche Nachricht-----
Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de] 
Gesendet: Dienstag, 18. März 2008 19:39
An: Tapestry users
Betreff: Re: AW: AW: [T5] How to get ampersand (&) rendered raw / notencodedas &amp;?

On Tue, 2008-03-18 at 18:53 +0100, Martin Kersten wrote:
> Hi Martin (G.),
> 
>   and to recap it would result into &amp; replacements and it would be 
> interpreted by some browsers correctly and some incorrectly?
Hopefully all browsers would interpret &amp; correctly as & when sending the request - as Filip wrote, also referencing http://htmlhelp.com/tools/validator/problems.html#amp


> So <t:outputraw> wont help. I see. Any solution (beside providing an 
> iframe component). I would like to see a 'raw:' binding or do I miss 
> something?
The solution is that &amp; is totally fine and simply I was wrong when I thought this would end up with &amp; going into the request...

So nothing has to be done or changed or anything :)

Thanx && cheers,
Martin

> 
> Cheers,
> 
> Martin (Kersten)
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de]
> Gesendet: Dienstag, 18. März 2008 18:37
> An: Tapestry users
> Betreff: Re: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &amp;?
> 
> Hi Martin (K.) :)
> 
> just to have this complete, the template part was this:
> 
> <iframe src="http://foo/?foo=bar&${queryString}"
> 
> with queryString beeing a page property...
> 
> Cheers,
> Martin
> 
> 
> 
> On Tue, 2008-03-18 at 18:11 +0100, Martin Kersten wrote:
> > Hi Martin,
> > 
> >   how is the query string is appended? There is always a difference 
> > in writing text and html. If you write text everything gets 
> > converted. If you write html (raw) everything will work.
> > 
> > Please just post the tml-part in question. Maybe we can give a shorty for it.
> > 
> > 
> > Cheers,
> > 
> > Martin (Kersten)
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im 
> > Auftrag von Josh Canfield
> > Gesendet: Dienstag, 18. März 2008 18:06
> > An: Tapestry users
> > Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?
> > 
> > Hi Martin,
> > 
> > I'm confused by your statement:
> > > I would say that a request parameter appended with 
> > > &amp;param=value would be seen by the server as amp;param instead of just param.
> > 
> > Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.
> > 
> > Josh
> > 
> > On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> > > Hi,
> > >
> > > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > > > Martin,
> > > >
> > > > I'm guessing your mail client converted Josh's message because 
> > > > it rendered the & in the url as &amp; - just as you have 
> > > > explained and shown.
> > > Ok, thanx :)
> > >
> > > >  As he said, url's with &amp; in place of & are actually correct 
> > > > and should not cause problems (I personally have never seen 
> > > > these urls cause any).
> > > I would say that a request parameter appended with 
> > > &amp;param=value would be seen by the server as amp;param instead of just param.
> > >
> > > Cheers,
> > > Martin
> > >
> > > >
> > > > chris
> > > >
> > > > Martin Grotzke wrote:
> > > > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > > > >
> > > > >> If I am understanding you correctly, you are getting 
> > > > >> something like this in your source:
> > > > >>
> > > > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > > > >>
> > > > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> > >
> > > > > so the & is rendered as &amp;
> > > > >
> > > > > Cheers,
> > > > > Martin
> > > > >
> > > > >
> > > > >
> > > > >> That is actually the correct behavior and it shouldn't be 
> > > > >> causing a problem in your browser. Are you seeing a problem?
> > > > >>
> > > > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > > > >>
> > > > >> Josh
> > > > >>
> > > > >>
> > > > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > > > >> <ma...@javakaffee.de> wrote:
> > > > >>
> > > > >>> Hi,
> > > > >>>
> > > > >>> I have a an html element (iframe) that get's a property of 
> > > > >>> my page class (the current query string) appended to its src attribute.
> > > > >>>
> > > > >>> The query string may contain the "&" char, which always gets 
> > > > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > > > >>>
> > > > >>> Thanx && cheers,
> > > > >>> Martin
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>
> > > > >>
> > >
> > 
> > 
> > 
> > --
> > --
> > TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
> > 
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> > 
> > 
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

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


Re: AW: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &?

Posted by Martin Grotzke <ma...@javakaffee.de>.
On Tue, 2008-03-18 at 18:53 +0100, Martin Kersten wrote:
> Hi Martin (G.),
> 
>   and to recap it would result into &amp; replacements and it would
> be interpreted by some browsers correctly and some incorrectly?
Hopefully all browsers would interpret &amp; correctly as & when sending
the request - as Filip wrote, also referencing
http://htmlhelp.com/tools/validator/problems.html#amp


> So <t:outputraw> wont help. I see. Any solution (beside providing
> an iframe component). I would like to see a 'raw:' binding or do
> I miss something?
The solution is that &amp; is totally fine and simply I was wrong when I
thought this would end up with &amp; going into the request...

So nothing has to be done or changed or anything :)

Thanx && cheers,
Martin

> 
> Cheers,
> 
> Martin (Kersten)
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de] 
> Gesendet: Dienstag, 18. März 2008 18:37
> An: Tapestry users
> Betreff: Re: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &amp;?
> 
> Hi Martin (K.) :)
> 
> just to have this complete, the template part was this:
> 
> <iframe src="http://foo/?foo=bar&${queryString}"
> 
> with queryString beeing a page property...
> 
> Cheers,
> Martin
> 
> 
> 
> On Tue, 2008-03-18 at 18:11 +0100, Martin Kersten wrote:
> > Hi Martin,
> > 
> >   how is the query string is appended? There is always a difference in 
> > writing text and html. If you write text everything gets converted. If 
> > you write html (raw) everything will work.
> > 
> > Please just post the tml-part in question. Maybe we can give a shorty for it.
> > 
> > 
> > Cheers,
> > 
> > Martin (Kersten)
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im Auftrag 
> > von Josh Canfield
> > Gesendet: Dienstag, 18. März 2008 18:06
> > An: Tapestry users
> > Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?
> > 
> > Hi Martin,
> > 
> > I'm confused by your statement:
> > > I would say that a request parameter appended with &amp;param=value 
> > > would be seen by the server as amp;param instead of just param.
> > 
> > Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.
> > 
> > Josh
> > 
> > On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> > > Hi,
> > >
> > > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > > > Martin,
> > > >
> > > > I'm guessing your mail client converted Josh's message because it 
> > > > rendered the & in the url as &amp; - just as you have explained 
> > > > and shown.
> > > Ok, thanx :)
> > >
> > > >  As he said, url's with &amp; in place of & are actually correct 
> > > > and should not cause problems (I personally have never seen these 
> > > > urls cause any).
> > > I would say that a request parameter appended with &amp;param=value 
> > > would be seen by the server as amp;param instead of just param.
> > >
> > > Cheers,
> > > Martin
> > >
> > > >
> > > > chris
> > > >
> > > > Martin Grotzke wrote:
> > > > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > > > >
> > > > >> If I am understanding you correctly, you are getting something 
> > > > >> like this in your source:
> > > > >>
> > > > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > > > >>
> > > > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> > >
> > > > > so the & is rendered as &amp;
> > > > >
> > > > > Cheers,
> > > > > Martin
> > > > >
> > > > >
> > > > >
> > > > >> That is actually the correct behavior and it shouldn't be 
> > > > >> causing a problem in your browser. Are you seeing a problem?
> > > > >>
> > > > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > > > >>
> > > > >> Josh
> > > > >>
> > > > >>
> > > > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > > > >> <ma...@javakaffee.de> wrote:
> > > > >>
> > > > >>> Hi,
> > > > >>>
> > > > >>> I have a an html element (iframe) that get's a property of my 
> > > > >>> page class (the current query string) appended to its src attribute.
> > > > >>>
> > > > >>> The query string may contain the "&" char, which always gets 
> > > > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > > > >>>
> > > > >>> Thanx && cheers,
> > > > >>> Martin
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>
> > > > >>
> > >
> > 
> > 
> > 
> > --
> > --
> > TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

AW: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &?

Posted by Martin Kersten <Ma...@mercateo.com>.
Hi Martin (G.),

  and to recap it would result into &amp; replacements and it would
be interpreted by some browsers correctly and some incorrectly?

So <t:outputraw> wont help. I see. Any solution (beside providing
an iframe component). I would like to see a 'raw:' binding or do
I miss something?

Cheers,

Martin (Kersten)


-----Ursprüngliche Nachricht-----
Von: Martin Grotzke [mailto:martin.grotzke@javakaffee.de] 
Gesendet: Dienstag, 18. März 2008 18:37
An: Tapestry users
Betreff: Re: AW: [T5] How to get ampersand (&) rendered raw / not encodedas &amp;?

Hi Martin (K.) :)

just to have this complete, the template part was this:

<iframe src="http://foo/?foo=bar&#38;${queryString}"

with queryString beeing a page property...

Cheers,
Martin



On Tue, 2008-03-18 at 18:11 +0100, Martin Kersten wrote:
> Hi Martin,
> 
>   how is the query string is appended? There is always a difference in 
> writing text and html. If you write text everything gets converted. If 
> you write html (raw) everything will work.
> 
> Please just post the tml-part in question. Maybe we can give a shorty for it.
> 
> 
> Cheers,
> 
> Martin (Kersten)
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im Auftrag 
> von Josh Canfield
> Gesendet: Dienstag, 18. März 2008 18:06
> An: Tapestry users
> Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?
> 
> Hi Martin,
> 
> I'm confused by your statement:
> > I would say that a request parameter appended with &amp;param=value 
> > would be seen by the server as amp;param instead of just param.
> 
> Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.
> 
> Josh
> 
> On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> > Hi,
> >
> > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > > Martin,
> > >
> > > I'm guessing your mail client converted Josh's message because it 
> > > rendered the & in the url as &amp; - just as you have explained 
> > > and shown.
> > Ok, thanx :)
> >
> > >  As he said, url's with &amp; in place of & are actually correct 
> > > and should not cause problems (I personally have never seen these 
> > > urls cause any).
> > I would say that a request parameter appended with &amp;param=value 
> > would be seen by the server as amp;param instead of just param.
> >
> > Cheers,
> > Martin
> >
> > >
> > > chris
> > >
> > > Martin Grotzke wrote:
> > > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > > >
> > > >> If I am understanding you correctly, you are getting something 
> > > >> like this in your source:
> > > >>
> > > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > > >>
> > > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> >
> > > > so the & is rendered as &amp;
> > > >
> > > > Cheers,
> > > > Martin
> > > >
> > > >
> > > >
> > > >> That is actually the correct behavior and it shouldn't be 
> > > >> causing a problem in your browser. Are you seeing a problem?
> > > >>
> > > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > > >>
> > > >> Josh
> > > >>
> > > >>
> > > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > > >> <ma...@javakaffee.de> wrote:
> > > >>
> > > >>> Hi,
> > > >>>
> > > >>> I have a an html element (iframe) that get's a property of my 
> > > >>> page class (the current query string) appended to its src attribute.
> > > >>>
> > > >>> The query string may contain the "&" char, which always gets 
> > > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > > >>>
> > > >>> Thanx && cheers,
> > > >>> Martin
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >>
> >
> 
> 
> 
> --
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

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


Re: AW: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by Martin Grotzke <ma...@javakaffee.de>.
Hi Martin (K.) :)

just to have this complete, the template part was this:

<iframe src="http://foo/?foo=bar&#38;${queryString}"

with queryString beeing a page property...

Cheers,
Martin



On Tue, 2008-03-18 at 18:11 +0100, Martin Kersten wrote:
> Hi Martin,
> 
>   how is the query string is appended? There is always a difference in writing 
> text and html. If you write text everything gets converted. If you write html (raw)
> everything will work.
> 
> Please just post the tml-part in question. Maybe we can give a shorty for it.
> 
> 
> Cheers,
> 
> Martin (Kersten)
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im Auftrag von Josh Canfield
> Gesendet: Dienstag, 18. März 2008 18:06
> An: Tapestry users
> Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?
> 
> Hi Martin,
> 
> I'm confused by your statement:
> > I would say that a request parameter appended with &amp;param=value 
> > would be seen by the server as amp;param instead of just param.
> 
> Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.
> 
> Josh
> 
> On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> > Hi,
> >
> > On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > > Martin,
> > >
> > > I'm guessing your mail client converted Josh's message because it 
> > > rendered the & in the url as &amp; - just as you have explained and 
> > > shown.
> > Ok, thanx :)
> >
> > >  As he said, url's with &amp; in place of & are actually correct and 
> > > should not cause problems (I personally have never seen these urls 
> > > cause any).
> > I would say that a request parameter appended with &amp;param=value 
> > would be seen by the server as amp;param instead of just param.
> >
> > Cheers,
> > Martin
> >
> > >
> > > chris
> > >
> > > Martin Grotzke wrote:
> > > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > > >
> > > >> If I am understanding you correctly, you are getting something 
> > > >> like this in your source:
> > > >>
> > > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > > >>
> > > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
> >
> > > > so the & is rendered as &amp;
> > > >
> > > > Cheers,
> > > > Martin
> > > >
> > > >
> > > >
> > > >> That is actually the correct behavior and it shouldn't be causing 
> > > >> a problem in your browser. Are you seeing a problem?
> > > >>
> > > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > > >>
> > > >> Josh
> > > >>
> > > >>
> > > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > > >> <ma...@javakaffee.de> wrote:
> > > >>
> > > >>> Hi,
> > > >>>
> > > >>> I have a an html element (iframe) that get's a property of my 
> > > >>> page class (the current query string) appended to its src attribute.
> > > >>>
> > > >>> The query string may contain the "&" char, which always gets 
> > > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > > >>>
> > > >>> Thanx && cheers,
> > > >>> Martin
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >>
> >
> 
> 
> 
> --
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

AW: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by Martin Kersten <Ma...@mercateo.com>.
Hi Martin,

  how is the query string is appended? There is always a difference in writing 
text and html. If you write text everything gets converted. If you write html (raw)
everything will work.

Please just post the tml-part in question. Maybe we can give a shorty for it.


Cheers,

Martin (Kersten)


-----Ursprüngliche Nachricht-----
Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im Auftrag von Josh Canfield
Gesendet: Dienstag, 18. März 2008 18:06
An: Tapestry users
Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?

Hi Martin,

I'm confused by your statement:
> I would say that a request parameter appended with &amp;param=value 
> would be seen by the server as amp;param instead of just param.

Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.

Josh

On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> Hi,
>
> On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > Martin,
> >
> > I'm guessing your mail client converted Josh's message because it 
> > rendered the & in the url as &amp; - just as you have explained and 
> > shown.
> Ok, thanx :)
>
> >  As he said, url's with &amp; in place of & are actually correct and 
> > should not cause problems (I personally have never seen these urls 
> > cause any).
> I would say that a request parameter appended with &amp;param=value 
> would be seen by the server as amp;param instead of just param.
>
> Cheers,
> Martin
>
> >
> > chris
> >
> > Martin Grotzke wrote:
> > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > >
> > >> If I am understanding you correctly, you are getting something 
> > >> like this in your source:
> > >>
> > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > >>
> > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
>
> > > so the & is rendered as &amp;
> > >
> > > Cheers,
> > > Martin
> > >
> > >
> > >
> > >> That is actually the correct behavior and it shouldn't be causing 
> > >> a problem in your browser. Are you seeing a problem?
> > >>
> > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > >>
> > >> Josh
> > >>
> > >>
> > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > >> <ma...@javakaffee.de> wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> I have a an html element (iframe) that get's a property of my 
> > >>> page class (the current query string) appended to its src attribute.
> > >>>
> > >>> The query string may contain the "&" char, which always gets 
> > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > >>>
> > >>> Thanx && cheers,
> > >>> Martin
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
>



--
--
TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.

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


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


AW: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by Martin Kersten <Ma...@mercateo.com>.
Holy dude, I forget. Just use OutputRaw this way:

<t:outputraw value="query"/>

instead of:
<t:output value="query"/>

First one writes the raw from of the query leaving & intact 
(and all other chars) and the second one would touch it.

check out the source for this little component to tweak the 
filtering / unfiltering as needed (URL-Encoding?). The component
in question is org.apache.tapestry.corelib.components.OutputRaw.


Cheers,

Martin (Kersten)

-----Ursprüngliche Nachricht-----
Von: joshcanfield@gmail.com [mailto:joshcanfield@gmail.com] Im Auftrag von Josh Canfield
Gesendet: Dienstag, 18. März 2008 18:06
An: Tapestry users
Betreff: Re: [T5] How to get ampersand (&) rendered raw / not encoded as &amp;?

Hi Martin,

I'm confused by your statement:
> I would say that a request parameter appended with &amp;param=value 
> would be seen by the server as amp;param instead of just param.

Does this mean that you are seeing a problem on the server side? What you are describing is not what I would expect, if you are seeing this then there might be something else going on.

Josh

On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke <ma...@javakaffee.de> wrote:
> Hi,
>
> On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > Martin,
> >
> > I'm guessing your mail client converted Josh's message because it 
> > rendered the & in the url as &amp; - just as you have explained and 
> > shown.
> Ok, thanx :)
>
> >  As he said, url's with &amp; in place of & are actually correct and 
> > should not cause problems (I personally have never seen these urls 
> > cause any).
> I would say that a request parameter appended with &amp;param=value 
> would be seen by the server as amp;param instead of just param.
>
> Cheers,
> Martin
>
> >
> > chris
> >
> > Martin Grotzke wrote:
> > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > >
> > >> If I am understanding you correctly, you are getting something 
> > >> like this in your source:
> > >>
> > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > >>
> > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
>
> > > so the & is rendered as &amp;
> > >
> > > Cheers,
> > > Martin
> > >
> > >
> > >
> > >> That is actually the correct behavior and it shouldn't be causing 
> > >> a problem in your browser. Are you seeing a problem?
> > >>
> > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > >>
> > >> Josh
> > >>
> > >>
> > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke 
> > >> <ma...@javakaffee.de> wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> I have a an html element (iframe) that get's a property of my 
> > >>> page class (the current query string) appended to its src attribute.
> > >>>
> > >>> The query string may contain the "&" char, which always gets 
> > >>> expanded as "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > >>>
> > >>> Thanx && cheers,
> > >>> Martin
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
>



--
--
TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.

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


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


Re: [T5] How to get ampersand (&) rendered raw / not encoded as &?

Posted by Josh Canfield <jo...@thedailytube.com>.
Hi Martin,

I'm confused by your statement:
> I would say that a request parameter appended with &amp;param=value
> would be seen by the server as amp;param instead of just param.

Does this mean that you are seeing a problem on the server side? What
you are describing is not what I would expect, if you are seeing this
then there might be something else going on.

Josh

On Tue, Mar 18, 2008 at 7:41 AM, Martin Grotzke
<ma...@javakaffee.de> wrote:
> Hi,
>
> On Tue, 2008-03-18 at 14:19 +0100, Chris Lewis wrote:
> > Martin,
> >
> > I'm guessing your mail client converted Josh's message because it
> > rendered the & in the url as &amp; - just as you have explained and
> > shown.
> Ok, thanx :)
>
> >  As he said, url's with &amp; in place of & are actually correct
> > and should not cause problems (I personally have never seen these urls
> > cause any).
> I would say that a request parameter appended with &amp;param=value
> would be seen by the server as amp;param instead of just param.
>
> Cheers,
> Martin
>
> >
> > chris
> >
> > Martin Grotzke wrote:
> > > On Mon, 2008-03-17 at 15:24 -0700, Josh Canfield wrote:
> > >
> > >> If I am understanding you correctly, you are getting something like
> > >> this in your source:
> > >>
> > >> <iframe src="http://host/page?arg1=val1&arg2=val2"></iframe>
> > >>
> > > Nope, unfortunately I get src="http://host/page?arg1=val1&arg2=val2"
>
> > > so the & is rendered as &amp;
> > >
> > > Cheers,
> > > Martin
> > >
> > >
> > >
> > >> That is actually the correct behavior and it shouldn't be causing a
> > >> problem in your browser. Are you seeing a problem?
> > >>
> > >> http://htmlhelp.com/tools/validator/problems.html#amp
> > >>
> > >> Josh
> > >>
> > >>
> > >> On Mon, Mar 17, 2008 at 1:18 PM, Martin Grotzke
> > >> <ma...@javakaffee.de> wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> I have a an html element (iframe) that get's a property of my page class
> > >>> (the current query string) appended to its src attribute.
> > >>>
> > >>> The query string may contain the "&" char, which always gets expanded as
> > >>> "&amp;". Is there any possibility to prevent T5 from encoding this char?
> > >>>
> > >>> Thanx && cheers,
> > >>> Martin
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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