for xml and json  I would advise Xtreme. But for regular properties... ?

On Wed, Dec 15, 2010 at 15:03, Moandji Ezana <[email protected]> wrote:

> On Wed, Dec 15, 2010 at 2:37 PM, Jan Goyvaerts <[email protected]>wrote:
>
>> Well, apart from using XSD I don't know about an implicit string-to-type
>> conversion able to deduce the type from the data. Or is there ?
>
>
> I'm doing it the other way around: "I need a User, get it from the
> HttpServletRequest."
>
> User class has:
> String name, int age, List<Pet> pets
>
> Pet class has:
> String name
>
> Request parameters would look like:
> user.name=Joe Bloggs
> user.age=22
> user.pets.name=Harry
> user.pets.name=Spot
>
> This is what all web frameworks do (allowing for the terrible job Spring
> MVC does), but I'm looking for a standalone library that does this kind of
> mapping.
>
> Moandji
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to