Results 1 to 2 of 2

Thread: [Help] Problem using <util:constant>

  1. #1
    Join Date
    Apr 2011
    Posts
    6

    Question [Help] Problem using <util:constant>

    Hello guys, i have a problem when filling a map property with two constant and using <util:constant>.

    I'm using spring 2.5.

    Below is my code that doesn't work, can anybody give me a hand on this?
    Code:
    <property name="declareParameters">
    <map> <!-- key=paramName, value=type -->
    	<entry>
    		<key><util:constant static-field="com.test.DBConstants.P_RESPONDENT_PHONE"/></key>
    		<value><util:constant static-field="java.sql.Types.VARCHAR"/></value>        			
            </entry> 
    </map>
    <property/>
    Thanks a lot in advance!

    Regards

  2. #2
    Join Date
    Apr 2011
    Posts
    6

    Talking

    well... I figure it out... it was a stupide dude problem... but I'll share the problem just for in case that you find it useful...
    Code:
    <property name="declareParameters">
    <map> <!-- key=paramName, value=type -->
    	<entry>
    		<key><util:constant static-field="com.test.DBConstants.P_RESPONDENT_PHONE"/></key>
    		<!-- here was the problem, i had to remove <value> tag -->
    		<util:constant static-field="java.sql.Types.VARCHAR"/>
            </entry> 
    </map>
    <property/>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •