Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > spring:bind create new (or use default) if null

Reply
Thread Tools

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

 
 
Jimmy
Guest
Posts: n/a
 
      06-09-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting a null pointer when trying to create a new font Justin Java 4 10-12-2006 06:21 PM
Why use "return (null);" instead of "return null;" ? Carl Java 21 08-24-2006 04:33 AM
When to use null and when to use static_cast<some_pointer_type>(0)? PengYu.UT@gmail.com C++ 19 04-04-2006 04:58 PM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM
VB.NET Null to SQL Null (ASP.NET 2.0 GridView) Kivak Wolf ASP .Net 2 06-28-2005 02:01 PM



Advertisments