<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 8, 2018 at 3:59 PM, aditya sanas <span dir="ltr">&lt;<a href="mailto:aditya.sanas@gmail.com" target="_blank">aditya.sanas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Team Undertow and  Stuart ,</div><div><br></div><div>Currently I m trying to create a executable jar file which would have embedded undertow configured. I was able to register controllers and dispatcher servlet to the server, but could not configure the view resolvers to return a view, such as jsp or thymeleaf.</div></div></blockquote><div><br></div><div>For thymeleaf it looks like you just need to write you own filter, and add that filter to the DeploymentInfo, something like this from the example app:</div><div><br></div><div><a href="https://github.com/thymeleaf/thymeleafexamples-gtvg/blob/3.0-master/src/main/java/thymeleafexamples/gtvg/web/filter/GTVGFilter.java">https://github.com/thymeleaf/thymeleafexamples-gtvg/blob/3.0-master/src/main/java/thymeleafexamples/gtvg/web/filter/GTVGFilter.java</a><br></div><div><br></div><div>For JSP you need to use the Jastow project, and follow the docs at:</div><div><br></div><div><a href="http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#jsp">http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#jsp</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I did not found much help on configuring thymeleaf with undertow, so currently stuck. </div><div><br></div><div>I would like to know, what you would recommend, should I continue trying to use embedded undertow server or should I migrate my current spring mvc application to spring boot.</div></div></blockquote><div><br></div><div>Spring boot+Undertow will also be using embedded Undertow. If your app is already based on Spring technologies it may be easier to do that than to try and reinvent the wheel.</div><div><br></div><div>Stuart</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Appreciated your response.</div><div><br></div><div>Thanks,</div><div>Aditya Sanas</div></div>
</blockquote></div><br></div></div>