Home HttpServletRequest params empty
Reply: 0

HttpServletRequest params empty

user603
1#
user603 Published in June 19, 2018, 4:23 pm

Trying to validate the params sent via HttpServletRequest it seems that when accessing the request.JSON the params are deleted and cannot be accessed anymore.

More info here: https://github.com/grails/grails-core/issues/10035

How can I validate the values without causing the params to be deleted? I have tried cloning the HttpServletRequest object and then work with that but without success.

HttpServletRequest sreq = (HttpServletRequest) request
println(sreq.JSON) //from this point params are gone
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.837764 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO