Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

c:set bean's integer property instead of String  RSS feed

 
Huang Teng Shiu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In the example , I got 'ID' from the URL , and its type is default to 'String'.
But my CatalogBean's setCatalogID only accept integer type.
Therefore , there will be the following error : argument type mismatch


Although I can change my setCatalogID(int) to setCatalogID(String) ,
I feel it so strange... not so intuitional......

Is there any better solution ?
[ May 05, 2003: Message edited by: Huang Teng Shiu ]
 
Andrew Symantec
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out it will do the job for you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!