You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christer Lindh <Ch...@eoncompany.com> on 2001/02/07 10:24:50 UTC

RE: Link encoding & LinkEncodingProcessor

> I'm afraid LinkEncodeingProcessor is not what you want. It is used
> for encoding session id into URL (if needed) (using servlet API
> response.encodeURL()). It only search for "action" and "href" tag
> to perform this. 
>
BTW, why is it only encoding href and action??
Shouldn't it encode all URLs, for example src= (especially for
framesets!)

Re: Link encoding & LinkEncodingProcessor

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> why would you need to encode image src tags with your session ID?  That
> makes no sense.

You can have images which you can get from a database by a servlet. Also,
you can have dynamic images, which might be genereated for a particular user
depending on his session atributes.
It can be also a transparent picture, which you can use with JavaScript to
get some data from server (in cockies) without refreshing the page:
  <img src="servlets/getGameField?id=111" />

But, if you use images as usual, then URL rewriting can cause your browser
to get pictures not from its cache, but send request to your server every
time.

Regards,
    Konstantin Piroumian

>
>
> > From: "Christer Lindh" <Ch...@eoncompany.com>
> > Reply-To: cocoon-users@xml.apache.org
> > Date: Wed, 7 Feb 2001 10:24:50 +0100
> > To: <co...@xml.apache.org>
> > Subject: RE: Link encoding & LinkEncodingProcessor
> >
> > BTW, why is it only encoding href and action??
> > Shouldn't it encode all URLs, for example src= (especially for
framesets!)
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>

Re: Link encoding & LinkEncodingProcessor

Posted by Michael Engelhart <me...@earthtrip.com>.
why would you need to encode image src tags with your session ID?  That
makes no sense.


> From: "Christer Lindh" <Ch...@eoncompany.com>
> Reply-To: cocoon-users@xml.apache.org
> Date: Wed, 7 Feb 2001 10:24:50 +0100
> To: <co...@xml.apache.org>
> Subject: RE: Link encoding & LinkEncodingProcessor
> 
> BTW, why is it only encoding href and action??
> Shouldn't it encode all URLs, for example src= (especially for framesets!)
> 


RE: Link encoding & LinkEncodingProcessor

Posted by I-Chung Young <ic...@yahoo.com>.
--- Christer Lindh <Ch...@eoncompany.com> wrote:
> BTW, why is it only encoding href and action??
> Shouldn't it encode all URLs, for example src= (especially for
> framesets!)

I believe the intent is to encode session id into URLs in the
form submission (action) or links (href) after xslt. These URLs
need to preserve the session to communicate with other pages.
Frameset usually is used for inital layout. There should be no
need for encoding session on that. Subsequent content change in
each frame is still accomplished by target (with forms or links).

If you have special design/need, you still have the option to
1. generate session id in xsp as a tag and pass to xsl to include
   in the URL that needs it.
2. change the source code  
(src/org/apache/cocoon/processor/LinkEncodeProcessor.java)
   and add "src" as the attribute to be encoded.

HTH
-------
I-Chung

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/