spring:bind create new (or use default) if null

Discussion in 'Java' started by Jimmy, Jun 9, 2008.

  1. Jimmy

    Jimmy Guest

    I'm using <spring:bind> to bind to a formBackingObject. However, one
    of the value in this object (command) may contain null value. Should
    I explicit assign it's contained field to some not-null value (inside
    method formBackingObject)? Or there's a way I can detect and create
    if null right inside the jsp?

    Thanks for input,
    Jimmy
     
    Jimmy, Jun 9, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mr2_93
    Replies:
    1
    Views:
    3,625
    mr2_93
    Oct 2, 2005
  2. Replies:
    5
    Views:
    26,912
    Mike Schilling
    Mar 29, 2006
  3. Replies:
    0
    Views:
    598
  4. rmn190
    Replies:
    2
    Views:
    2,398
    Arne Vajhøj
    Jan 10, 2008
  5. Goldfish
    Replies:
    1
    Views:
    770
    Goldfish
    Nov 6, 2008
Loading...

Share This Page