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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -