• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

convertNull in struts1.3

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Am working on struts 1.3. Trying to make use of client side validation.Got a text field in a jsp, its getting intialized to '0'. I want that to be initialsed to null. Made use of 'convertNull'
in web.xml, but no use .
<init-param>
<param-name>convertNull</param-name>
<param-value>true</param-value>
</init-param>

Can anyone help me regarding this.I don want to add any logic like'checking 0' in the code.

thanks.
 
Ranch Hand
Posts: 814
Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch
See JavaRanch Naming Policy
reply
    Bookmark Topic Watch Topic
  • New Topic