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
Post a Comment