Thanks a lot for theses explanations.
That's right, PP should not be used to put Objects.

In fact, I turned around using the session.put(). I reset the values between
each HTTP request using my SessionValidator.

Herv�


----- Original Message -----
From: Christoph Reck <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 10:37 AM
Subject: Re: How to add objects in ParameterPaser


> If you looked at the PP.add(String, String) method, you would
> have seen that implementing a PP.add(String, Object) should
> be:
>     add (String name, Object value)
>     {
>         this.put(convert(name), new Object[] {value} );
>     }
> Note that this would break the DynamicURI.add(int, PP) - it
> would get a class cast exception and add a value=null to the
> URI, so as stated in a previous email i'm for a -1 for such
> a patch

>
> PP should remain being a package for string parameters.
>
> If the data.getUser().getTemp() or the context are not suitable
> for your needs, please send a proposal/patch - e.g. data.getTemp()
> for something more applicable.
>
> Regards,
> Christoph
>
> Herv� Guidetti wrote:
> >
> > I would like to write a patch, but if I write :
> >
> > add (String key, Object theObject)
> > {
> >         this.put(key, theObject);
> > }
> >
> > It doesn't work. It inserts the key in the hastable but the object is
null
> > (I looked with my debugger).
> >
> > Do you have any idea to make it running ?
> >
> > Herv�
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to