Configure Thymeleaf with Struts 2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Configure Thymeleaf with Struts 2

Lalit Chattar
I want to use Thymeleaf with my struts engine. i have configured one plugin https://github.com/codework/struts2-thymeleaf-plugin but it is not working. I am getting error
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/WEB-INF/templates/hello.html", template might not exist or might not be accessible by any of the configured Template Resolvers.  Please tell me what configuration is required to make it working.
Reply | Threaded
Open this post in threaded view
|

Re: Configure Thymeleaf with Struts 2

Zemi
Administrator
Hello,

have you double checked that your template file is called hello.html and it is inside WEB-INF/templates folder?

Regards,
   Zemi

Reply | Threaded
Open this post in threaded view
|

Re: Configure Thymeleaf with Struts 2

lalit.chattar
Hi  
I have resolved that issue. I was doing wrong action mapping in struts.xml

Thanks for your reply.