开发者

referenceData method called twice

开发者 https://www.devze.com 2023-03-09 01:28 出处:网络
I am new to spring mvc.I am using simpleformcontroller.开发者_运维知识库Everything is working fine.

I am new to spring mvc.I am using simpleformcontroller.开发者_运维知识库Everything is working fine.

But when users timeouts and try to login again the referenceData method is called twice.

It is very simple application.There is no error in the code.

Thanks in advance.


I found out the answer to my own question.I used request setattribute method in spring controller.First time it sets the attribute and if second invocation happens it avoids unnecessary code execution.However it doesn't stops the second call but it is good to reduce bad effect of second call.

Hth Jagdev

0

精彩评论

暂无评论...
验证码 换一张
取 消