How to pass customized request to controller in spring mvc? -
generally, when user's form submitted, request passed spring controller.
and controllers shaped testcontroller(httpservletrequest request, httpservletresponse response)
i want pass "myhttpsevletrequest, myhttpservletresponse" not "httpsevletrequest, httpservletresponse".
is possible? want know possible, , how? in technique.
don't "no need to that, alternative way here"
any answer appreiciated. thank you.
i dont know how directly know workaround intend done.
you can use spring aop methodbeforeadvice , afterreturningadvice hold of request , response objects before , after enter/leave action method. kind of request response interceptor doing. in can write transformer method take standard request , response object input , output custom request , response object(your custom class should implement httpservletrequest interface) , override request , reponse objects custom objects.
Comments
Post a Comment