Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

convertNull in struts1.3

 
shrutha keerti
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Hibernate Linux Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic