Announcement Announcement Module
Collapse
No announcement yet.
[Help] Problem using <util:constant> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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
    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/>

    Comment

    Working...
    X