last update: 08/02/2004 23:51:22

Trim a nested configuration


For example you have a few sql statements in your configuration and in order to make more readable you put the code like this:

<category name="NEWS_SQL">
  <insert>
  insert into t_news 
  (text,author,created)
  values 
  (?,?,?)
  </insert>
  <update>
  update t_news 
  set text=?,author=?,created=?
  where newsid=?
  </update>
</category>

In order to trim the property value you need to set a system property:

System.SetProperty("jconfig.trimValue","true");

Note: When you save the configuration it will be saved as trimed version.