defining custom model class in spring -


i have mapping method in spring following signature:

@requestmapping("/checkout.action") protected string checkout(modelmap map) { ... return "logicalviewname"; } 

i define custom map class extends modelmap , have passed method instead. there simple way this? going replace code creates initial map object wasn't able find out is.

there no simple way achieve this. need alter spring's internals replace implementation of modelmap.

if use spring 3.1 or later, class injecting modelmap org.springframework.web.method.annotation.mapmethodprocessor.


Comments

Popular posts from this blog

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -