Works for me.

I added the following to Workbench.application:

<extension name="net.sf.tapestry.request-decoder"
class="tutorial.workbench.RequestDecoder"/>

I verified that it worked correctly using the debugger and logging.  By
turning INFO logging on for AbstractEngine, the request decoder get
excersied.

The decoder is only instantiated and used when methods such as
RequestContext.getServerName() or getRequestURI() are invoked.  If you
invoke methods directly on the HttpServletRequest, you get the raw values.
I have considered creating a wrapper around HttpServletRequest so that you
always get the decoded values.

I just checked in my changes.

----- Original Message -----
From: "Christian Noack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 5:56 AM
Subject: [Tapestry-developer] Re: cannot use my own RequestDecoder


> I made a mistake. The application specification should look like:
>
> <application name="DaedalosLibrary"
> engine-class="com.daedalos.library.controller.LibraryEngine" >
>   <extension name="net.sf.tapestry.request-decoder"
> class="com.daedalos.library.controller.LibraryRequestDecoder" />
>  [...]
>
> But my problem remains the same. I expect my method
> decodeRequest(HttpServletRequest request)  to be called, I it isn't
called.
>
> Did I forget something?
>
> Christian
> ---------------
>
>
>
> --On Mittwoch, September 04, 2002 10:47:08 +0200 Christian Noack
> <[EMAIL PROTECTED]> wrote:
>
> > In the documention for 2.2-beta-1 for the class
> > net.sf.tapestry.RequestContext I read that you can use your own
> > RequestDecoder by providing an implementation of IRequestDecoder and
> > adding an extension named net.sf.tapestry.request-decoder to your
> > application specification. Did I understand right, that my application
> > specification should then look like this:
> >
> > <application name="DaedalosLibrary"
> > engine-class="com.daedalos.library.controller.LibraryEngine" >
> >
> >     <property name="net.sf.tapestry.request-decoder">
> >         com.daedalos.library.controller.LibraryRequestDecoder
> >     </property>
> >
> > [...]
> >
> > </application>
> >
> > If this is correct, that I must have forgotten something else, because
> > the method  decodeRequest(HttpServletRequest request)  within my class
> > LibraryRequestDecoder is never called.
> >
> > Any hints?
> >
> > Best regards,
> >
> >   Christian
> >
> > ----
> >
> > Daedalos Consulting GmbH
> > www.daedalos.com
> > [EMAIL PROTECTED]
>
>
>
> Daedalos Consulting GmbH
> www.daedalos.com
> [EMAIL PROTECTED]
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to