Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Request forwarding is not working with ServletHttpHandlerAdapter in servlet 3.1 container [SPR-17637] #22167
I'm trying to write reactive view resolver for apache tiles. Tiles forwards request to jsp and jsp calls
Is request forwarding not supported with web-flux?
No further details from SPR-17637
Rossen Stoyanchev i'm able to properly render view with overriding getWriter method of http response
as below :
DataBuffer dataBuffer = this.httpResponse.bufferFactory().allocateBuffer(); DataBuffer dataBuffer = this.httpResponse.bufferFactory().allocateBuffer(); this.dataBuffer=dataBuffer; this.printWriter=new ReactivePrintWriter(dataBuffer.asOutputStream());
Then returning below from renderInternal method of AbstractUrlBasedView
Need your help to review this approach.
Brian Clozel commented
As mentioned in that answer, this might be a duplicate of #19106. But taking a step back, I don't think it is possible to implement the support for a templating engine that's tied to the Servlet API. So this might be a non-starter.